Commit Graph

400 Commits

Author SHA1 Message Date
Allan Odgaard
cb5c6062cd Checkin release notes 2014-04-12 14:21:37 +07:00
Allan Odgaard
d549bb7a84 Remove unused include (cf/callback.h) 2014-04-12 11:22:38 +07:00
Allan Odgaard
7d1ca99421 Disable plug-ins for HTML output WebView
Also switch about window’s web preferences to be set via identifier instead of manipulating the standard preferences.
2014-04-09 15:15:36 +07:00
Allan Odgaard
6cc0108961 Rename document_t:{open,save} → document_t:sync_{open,save}
This makes it easier to search for code that use these functions.
2014-04-07 17:28:41 +07:00
Allan Odgaard
c7a211b2fd Let View → Wrap Column remember the last 5 values used 2014-04-06 19:36:09 +07:00
Allan Odgaard
30b4d9322d Checkin release notes 2014-04-06 19:36:08 +07:00
Allan Odgaard
645c837262 Skeleton commit window server
This allows the commit command line tool to open a window as “native”.

We use distributed objects for talking to TextMate and getting a response. For the response, we release the connection in the next iteration of the event loop and then gracefully exit the program. Though it’s not clear if this is enough time for distributed objects to reply the client (if not, an exception is thrown in the client about “connection disappeared while waiting for a reply”).
2014-04-03 15:49:58 +07:00
Allan Odgaard
e4c9008422 Don’t assume only one class implements performBundleItem: 2014-04-03 15:08:37 +07:00
duanemoody
073e97ffd7 Add application category for OS X
Applications is often not subfoldered and View --> Arrange by Application Category helps but apps need to have this metadata otherwise they're sorted into "Other" at the bottom.  https://developer.apple.com/library/Mac/releasenotes/General/SubmittingToMacAppStore/#//apple_ref/doc/uid/TP40010572-CH16-SW8  (this applies to all Mac apps, not just those coming from App Store)
2014-04-02 14:29:59 -07:00
Allan Odgaard
b1de8256a2 Disable WebView plug-ins and page cache for about window 2014-04-01 16:01:19 +07:00
Allan Odgaard
9f177d39e8 Checkin release notes 2014-03-31 18:04:02 +07:00
Allan Odgaard
69c83e56df The ‘const’ keyword should be to the right of its type
The standard doesn’t care which side the keyword is placed on, but placing it on the right makes it easier to read types.

E.g. reading “int const* const” from right to left we get “const pointer to const integer”.
2014-03-31 08:27:19 +07:00
Allan Odgaard
db13d4c1f9 Use std::string::back() instead of operator[] with size()-1 2014-03-31 08:27:18 +07:00
Allan Odgaard
cbfe73b13e Checkin release notes 2014-03-30 10:36:56 +07:00
Allan Odgaard
f64d349033 Set file type to ‘text.hg-commit’ for ‘hg-editor-*.txt’
Since Mercurial is not using a unique “path suffix” we need to handle this via the default properties (instead of in the grammar’s file type extension array).
2014-03-28 19:31:15 +07:00
Allan Odgaard
5f69ef31c7 Don’t use NS prefix for custom functions 2014-03-28 19:31:14 +07:00
Allan Odgaard
19ecfbd274 Always center selection when using Go to Line dialog
Closes #987.
2014-03-25 20:32:46 +07:00
Allan Odgaard
1f6863180e Checkin release notes 2014-03-25 12:41:37 +07:00
Allan Odgaard
ab4e711c27 Fix AF_INET6 → PF_INET6
Also remove extraneous whitespace.
2014-03-23 22:47:16 +07:00
Allan Odgaard
2c20ab23b0 Ask for maximum queue length for pending socket connections
This is mainly because the SOMAXCONN constant looks better (in the source) than some arbitrarily chosen number. The constant is presently defined as 128 so it doesn’t seem wasteful, and presumably the queue will only take up space if we are not actually responding to socket connections.
2014-03-23 22:47:16 +07:00
Allan Odgaard
d7660bd89e Detect first loop iteration using std::exchange “idiom” 2014-03-23 22:47:15 +07:00
Allan Odgaard
9a9614e264 Workaround for “format string is not a string literal” warning 2014-03-13 20:51:15 +07:00
Allan Odgaard
eea07b93a7 Move “Open Target” out of the Avian bundle
Instead it’s in the OakDebug bundle. This command is only useful for people working on the TextMate source (in TextMate).
2014-03-13 17:25:29 +07:00
Allan Odgaard
67e8c23b3b Checkin release notes 2014-03-12 15:50:39 +07:00
Allan Odgaard
94b1f9aa6c Add titles to HTML used in about window
With voice over enabled the titles will be read aloud, so it makes sense to set them to something sensible.
2014-03-12 15:50:39 +07:00
Allan Odgaard
f26145e6cc Only print download progress when stderr is a tty 2014-03-05 16:39:53 +07:00
Allan Odgaard
7f11230655 Checkin release notes 2014-03-04 16:13:30 +07:00
Allan Odgaard
3d4d75c543 Update about window text 2014-03-04 16:03:05 +07:00
Allan Odgaard
f5ba564c41 Update copyright to 2014 2014-03-04 08:57:56 +07:00
Allan Odgaard
2b28f5a165 Use NSHumanReadableCopyright in about window
This avoids having the copyright (which includes the current year) in multiple places.
2014-03-04 08:57:28 +07:00
Allan Odgaard
c2397484b8 Use C++11 for loop
Majority of the edits done using the following ruby script:

    def update_loops(src)
      dst, cnt = '', 0

      block_indent, variable = nil, nil
      src.each_line do |line|
        if block_indent
          if line =~ /^#{block_indent}([{}\t])|^\t*$/
            block_indent = nil if $1 == '}'
            line = line.gsub(%r{ ([^a-z>]) \(\*#{variable}\) | \*#{variable}\b | \b#{variable}(->) }x) do
              $1.to_s + variable + ($2 == "->" ? "." : "")
            end
          else
            block_indent = nil
          end
        elsif line =~ /^(\t*)c?iterate\((\w+), (?!diacritics::make_range)(.*\))$/
          block_indent, variable = $1, $2
          line = "#$1for(auto const& #$2 : #$3\n"
          cnt += 1
        end
        dst << line
      end
      return dst, cnt
    end

    paths.each do |path|
      src = IO.read(path)

      cnt = 1
      while cnt != 0
        src, cnt = update_loops(src)
        STDERR << "#{path}: #{cnt}\n"
      end

      File.open(path, "w") { |io| io << src }
    end
2014-03-03 10:34:13 +07:00
Allan Odgaard
5d089803b8 Disable session saving if we terminate before having restored it
Previously if TextMate had expired, we would terminate, which would cause the current session state to be saved, and since it hadn’t yet been restored, we would write out empty session state (and overwrite the user’s previous session state).
2014-03-01 08:48:49 +07:00
Allan Odgaard
91096c12f3 Ask user to skip session restore if abnormal exit is detected 2014-03-01 08:38:01 +07:00
Allan Odgaard
6cbf04547e The mate command will only default to UUID when stdin is empty
This is a minor change of the behavior introduced in 18d9aa030, which made it default to the new --uuid mode when TM_DOCUMENT_UUID was set, and no files were given. This meant that commands (executed from TextMate) could not do something like:

    echo foo|"$TM_MATE"

Since there is no way to know if data is actively being sent to mate, we check if the length of data read is zero, and treat that as “no data was sent to mate”, but in theory a command could pipe potential empty user data to mate, which would lead to the wrong behavior. A command that may do this, should unset the TM_DOCUMENT_UUID environment variable.
2014-02-26 08:29:42 +07:00
Allan Odgaard
6c31a849b1 Use constants from sysexits.h for mate failure codes 2014-02-23 23:18:52 +07:00
Allan Odgaard
fa16dff870 Do not call abort (on failure) in pretty_plist.cc
Instead we return one of the constants from sysexits.h — the problem with abort() is that, for users with the feature enabled, it will trigger a core dump. That is a bit extreme for somewhat expected problems (like empty input file).
2014-02-23 21:41:16 +07:00
Allan Odgaard
2d9a680f63 Checkin release notes 2014-02-23 15:04:56 +07:00
Allan Odgaard
bf1f1ef4f6 Checkin release notes 2014-02-21 17:44:08 +07:00
Allan Odgaard
162ba1649c Rename project-state.db → RecentProjects.db 2014-02-19 18:01:00 +07:00
Ronald Wampler
f99cf4bbdd Fix typo in contacts usage description 2014-02-13 13:38:35 +07:00
Allan Odgaard
a5ab9a7d03 Checkin release notes 2014-02-12 20:52:53 +07:00
Allan Odgaard
f90ff29c96 Checkin release notes 2014-02-11 17:02:46 +07:00
Allan Odgaard
18d9aa030b Add -u/--uuid option to mate shell tool
If no files are specified, the -w flag is not used, and TM_DOCUMENT_UUID is set, then this argument defaults to the value of the TM_DOCUMENT_UUID environment value.
2014-02-11 16:45:39 +07:00
Allan Odgaard
10f14a74f3 Support referencing documents via UUID
This support is to allow using ‘mate’ to change caret/selection for open untitled documents.
2014-02-11 16:38:58 +07:00
Allan Odgaard
7f65abfe5b Do not hardcode year interval for bundle changes
Previously we would not show any changes done after 2013. We now show changes for the current and last two years.
2014-02-10 20:26:08 +07:00
Allan Odgaard
5256a8e9ae Add file icon to favorites / recent projects 2014-02-10 20:10:39 +07:00
Allan Odgaard
9246e014b0 Minor refactor 2014-02-10 20:00:59 +07:00
Allan Odgaard
bef5e5d88c LRU sort recent projects and disambiguate display names 2014-02-10 16:57:10 +07:00
Allan Odgaard
d9f0cf6563 Skip non-existing recent projects
Long-term it would make sense to also delete them if they haven’t been used for e.g. a month.
2014-02-10 13:53:10 +07:00
Allan Odgaard
d912b4272e Allow using ‘quit’ to terminate an (r)mate session
This is useful when testing socket connections as it seems nicer than simply killing the connection.
2014-02-08 16:28:16 +07:00