Commit Graph

2220 Commits

Author SHA1 Message Date
Allan Odgaard
a5ab9a7d03 Checkin release notes v2.0-alpha.9511 2014-02-12 20:52:53 +07:00
Allan Odgaard
02eae4c494 Enable truncation of status bar text in chooser dialogs 2014-02-12 20:46:08 +07:00
Allan Odgaard
16c7679c0a Use ng::word_at for what to complete
This way we won’t try to complete whitespace.
2014-02-12 20:08:41 +07:00
Allan Odgaard
112a3a9e80 Allow aborting commands by pressing ⌘. or ⌃C 2014-02-12 15:50:13 +07:00
Allan Odgaard
7fb5b75219 Restore default signal handlers for commands
Before this commit it wasn’t possible to SIGINT / SIGTERM commands launched from TextMate since TextMate itself has a custom handler for these signals (so they are set to be ignored) — this included pressing ⌃C in the HTML output window (for commands using the TextMate.Executor API).
2014-02-12 15:08:28 +07:00
Allan Odgaard
f128304d75 Handle non-mouse/key events while running commands
Fixes textmate/diff.tmbundle#5
2014-02-12 11:33:37 +07:00
Allan Odgaard
1c14143575 Switch file from C++ to Objective-C++ 2014-02-12 11:15:29 +07:00
Allan Odgaard
3b760492a8 Do not set TM_CURRENT_WORD if caret is surrounded by whitespace
This is consistent with “word” as input for commands.
2014-02-11 20:56:38 +07:00
Allan Odgaard
da31c2d11a Introduce ng::word_at (refactoring) 2014-02-11 20:55:01 +07:00
Allan Odgaard
c54c2c89f2 Only set TM_CURRENT_WORD when we have a word 2014-02-11 20:47:01 +07:00
Allan Odgaard
f90ff29c96 Checkin release notes v2.0-alpha.9509 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
c7462eedd7 Allow disabling folder state restore
Presently this will also disable it if the folder is opened via the Recent Projects chooser. Ideally opening via this list should not disable folder state restoring.
2014-02-11 14:23:34 +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
5d08404136 Update OakPasteboard to use “new” Objective-C run-time features 2014-02-10 14:41:37 +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
d52eda852e Disable timestamp server for code signing
This slows down signing enormously (10+ seconds) and fails most of the time when internet connectivity is suboptimal (might be related to being behind a proxy).
2014-02-10 13:51:04 +07:00
Allan Odgaard
8ff36f3402 Revert "Use custom script to simulate “codesign --deep”"
This reverts commit 434917b1e9.
2014-02-10 13:48:58 +07:00
Allan Odgaard
e197c48382 Update kvdb submodule: Debug output removed 2014-02-10 08:14:17 +07:00
Allan Odgaard
7287fc7359 Indicate that Find and HTML output are auxiliary windows
This doesn’t seem to change anything wrt. behavior, but perhaps it will in the future.
2014-02-09 23:09:21 +07:00
Allan Odgaard
413c77931a When restoring open tabs, skip non-existing files 2014-02-08 16:28:17 +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
Allan Odgaard
8165d6f5f2 Update 127.0.0.1 → localhost in documentation
TextMate listens on IPv6 so we must use ‘localhost’ with SSH so that it correctly resolves to ::1 (instead of an IPv4 address).
2014-02-08 16:28:16 +07:00
Joachim Mårtensson
0d0ee4c51c refactor duplicate folding code into one method 2014-02-08 01:31:09 +01:00
Allan Odgaard
ebba7eac8c Checkin release notes v2.0-alpha.9507 2014-02-07 20:06:15 +07:00
Allan Odgaard
48e3796f87 Add delete action to Open Favorites
This only works for Recent Projects (not Favorites).

Also, the key equivalent for this is ⌘⌫. The Edit → Delete menu item will not work (as it’s being sent to the input field).
2014-02-07 19:53:28 +07:00
Allan Odgaard
6ab6c3f43b Add “Recent Projects” to “Open Favorites” dialog 2014-02-07 19:53:28 +07:00
Allan Odgaard
091e554a1b Remember open files per (project) folder
This means that if one does “mate «folder»”, open a few files as tabs, and then close the window, next time the same folder is opened, TextMate will restore the tabs.

Presently state is remembered (when closing a window) either if the file browser is visible or if more than one document is open in the window.
2014-02-07 19:53:28 +07:00
Allan Odgaard
d1265913df In chooser lists, treat deleteToBeginningOfLine: as delete:
This is only if there is a responder for the delete: action and is done to allow ⌘⌫ to be used to delete items in the list (like favorites).

The implementation is not ideal as we make assumptions about what action the ⌘⌫ key is bound to and perhaps it’s also a gotcha that ⌘⌫ in a text field will delete something else (though the list is also drawn as having focus).
2014-02-07 19:53:28 +07:00
Allan Odgaard
13f6c312a2 Add kvdb submodule (key/value database) 2014-02-06 22:47:35 +07:00
Allan Odgaard
106ad9623c Factor out “session restore” (for a single document controller) 2014-02-06 22:47:35 +07:00
Allan Odgaard
fa0a82ca4a Factor out “session info” (for a single document controller) 2014-02-06 20:35:12 +07:00
Allan Odgaard
7a7107d69a Factor out OakScopeBarView 2014-02-06 20:20:55 +07:00
Allan Odgaard
3b26eeacb0 The filtering windows now truncate list items
Previously some of the filtering windows would have the items “wrap” (the default) which is suboptimal for table views.
2014-02-05 13:14:21 +07:00
Allan Odgaard
4d718b6207 Auto-reveal open file now works with hidden file browser
When the file browser is hidden we no longer auto-reveal. When the user shows the file browser, we select the currently open document.
2014-02-05 12:27:53 +07:00
Allan Odgaard
ca7d49eeb2 Checkin release notes 2014-02-03 20:51:32 +07:00
Allan Odgaard
286a92c792 Select word at EOL with trailing whitespace was a no-op 2014-02-01 21:34:34 +07:00
Allan Odgaard
dd5c050f28 Commands taking “word” as input will not get whitespace as input
Previously if there was whitespace to the left and right of the caret, the entire sequence of whitespace was given as input to the command. This was not the case for TextMate 1.x so it broke the format commands in the LaTeX bundle (bold, italic, and teletype).
2014-02-01 21:19:22 +07:00
Allan Odgaard
d1260a28b6 Revealing an item in a file package may now change folder
Previously if opening e.g. /Applications/Mail.app/Contents/Info.plist and setting project folder to /Applications and asking to Go → Current Document then nothing would happen, as the current document would be a descendent of the current (project) folder but the file browser was unable to expand the Mail.app file package to actually reveal it.
2014-02-01 20:56:31 +07:00
Allan Odgaard
1092afde25 Deleted bundle items were returned when asking for disabled items
This would cause deleted (delta) items to show up in the bundle editor (as it queries the bundle manager for disabled items and would thus also get the deleted ones).
2014-01-31 19:06:38 +07:00
Allan Odgaard
7ced73244f Add setting to disable tab re-ordering
When opening a document it will be placed to the right of the current one (in the tab bar) even if the document being opened is already in the tab bar, this is to make ⌘W work to “close and go back” without having to keep a list of previously selected tabs.

This feature can now be disabled using:

    defaults write com.macromates.TextMate.preview disableTabReordering -bool YES

Note though that if one selects multiple documents to open then it will potentially re-order the tab bar so that the documents selected are adjacent.
2014-01-29 16:09:20 +07:00
Torsten Trautwein
a88f9baf5f Preference to auto-reveal the current file in the project browser
An option called "Auto-reveal open file in project browser" has been
added to the Projects preference pane. When checked, the currently open
file will be revealed in the project's file browser. By default, the
option is not checked and thus the behavior is as it was before.
2014-01-20 20:15:25 +07:00
Torsten Trautwein
5048ecc9b0 Saved with Xcode 5.0.2 (5A3005) 2014-01-20 13:52:41 +01:00
Allan Odgaard
f96cc63c1c Add a Bitdeli badge to README 2014-01-14 17:37:40 +07:00
Allan Odgaard
16f7109656 Fix swapped freehanded left/right constants
In practice move() isn’t called with a freehanded left/right constant so the incorrect placement wasn’t causing an issue.
2014-01-13 11:16:11 +07:00
Allan Odgaard
bdba01a30f Do not report “Failed: Extracting Archive” on download failure 2014-01-13 09:02:16 +07:00