Commit Graph

905 Commits

Author SHA1 Message Date
Allan Odgaard
6bdf883abf fixup! Optimize path::disambiguate 2013-01-20 12:49:34 +01:00
Allan Odgaard
5627d201db Opening multiple documents selects the last one
This way ⌘W can be used to close the current document and move to the “next” one which was part of the set opened.
2013-01-20 12:49:34 +01:00
Allan Odgaard
ee44735a88 Don’t re-use scratch document for already open documents 2013-01-20 12:49:34 +01:00
Allan Odgaard
cd40111b91 Skip modified tabs when opening with “close other” 2013-01-20 12:49:34 +01:00
Allan Odgaard
fe3dff7af6 Replace custom code with kSelectionExtendToWord 2013-01-20 12:49:34 +01:00
Allan Odgaard
36e612930d Don’t setup variables in test proxy 2013-01-20 12:49:34 +01:00
Allan Odgaard
ec79163f30 Avoid editor_t::variables for getting selected text 2013-01-20 12:49:34 +01:00
Allan Odgaard
46d870c5ca Let DocumentController provide SCM scopes 2013-01-20 12:49:33 +01:00
Allan Odgaard
340782dbc9 Update SCM variables with status 2013-01-20 12:49:33 +01:00
Allan Odgaard
55b6415339 Untitled files would be prefixed with a null string 2013-01-20 12:49:33 +01:00
Allan Odgaard
61b01c89f8 Use scm variables API 2013-01-20 12:49:33 +01:00
Allan Odgaard
beb7417400 Introduce API for getting “scm variables”
This is both convenience, since we setup the TM_SCM variables in several places, but will also allow to register for changed variables (and thus, fetch branch name in a thread).
2013-01-20 12:49:33 +01:00
Allan Odgaard
92685ecf07 Use C++11 for-loop instead of macro 2013-01-20 12:49:33 +01:00
Allan Odgaard
19030a7586 Use file’s existing icon when zooming it 2013-01-20 12:49:33 +01:00
Allan Odgaard
6c05cae8ed Use std::inserter helper function 2013-01-20 12:49:32 +01:00
Allan Odgaard
fb8ad13a49 Indicate modified status in file chooser 2013-01-20 12:49:32 +01:00
Allan Odgaard
0562d22716 Ensure we remove ourself from all observing
The file browser was still observing FSItemDidReloadNotification in its dealloc. Prior to ARC we used ‘self.outlineView = nil’ which removed us as observer, but after ARC we no longer execute that line.
2013-01-20 12:49:28 +01:00
Allan Odgaard
3b05ec3704 Let file chooser show icon and close button
The close button is currently not working.
2013-01-18 15:45:44 +01:00
Allan Odgaard
4f4a56fd7a Make OFBPathInfoCell a public class
This is temporary — if it should remain public, we should rename it and move it to the OakAppKit framework.
2013-01-18 15:45:43 +01:00
Allan Odgaard
f2ed528bb1 Improve code for showing VO tab menu
We now use standard API for showing the menu and position it relative to the VO-selected tab.
2013-01-18 15:45:43 +01:00
Allan Odgaard
701e26997e Fix typo in enum value 2013-01-18 15:45:43 +01:00
Allan Odgaard
d40a1fa431 Switch to generated properties 2013-01-18 15:45:43 +01:00
Allan Odgaard
686f9eadb1 Allow slashes in path string on find clipboard (⌘T) 2013-01-18 15:45:43 +01:00
Allan Odgaard
29638a948d Switch to reworked file chooser 2013-01-18 15:45:43 +01:00
Allan Odgaard
dea1376c5b Add reworked file chooser
Presently the ‘@symbol’ syntax is not implemented.

I have removed the glob text field (so fixes #601), if it comes back, it’ll likely be as a different control, but I think we can do without this extra filtering. You can set the various include/exclude patterns for the file browser.

The tabs are also gone, though you can still use Go → Go to Tab → [ Project Folder (⌘1) | Go → Open Documents (⌘2) ] and the “Open Documents” mode list all open documents from the current project window (so partial fix for #139).

It no longer waits for all items to be loaded when you hit return (fixes #672), though as all open documents from current window are preloaded, it shouldn’t cause a problem when pressing ⌘T + ↩ quickly to go to previous file.
2013-01-18 15:38:31 +01:00
Allan Odgaard
20378c426e A full match should rank highest 2013-01-18 13:34:57 +01:00
Allan Odgaard
e6a4254e61 Allow excluding untitled documents from document::scanner_t
The problem with this feature is that it includes all untitled documents including e.g. the current bundle item being edited. For things like ⌘T we only want to show untitled documents from the current window.
2013-01-18 05:46:27 +01:00
Allan Odgaard
3a515f1551 Checkin release notes 2013-01-17 10:06:30 +01:00
Allan Odgaard
e46ea56af9 Exclude gutter from accessibility
This was read as “empty scroll view” (using voice over), so better to skip it.
2013-01-17 09:16:04 +01:00
Allan Odgaard
3564746260 Add folder’s display name to menu items
This is only for the menu which shows when there is no selection.
2013-01-17 09:16:04 +01:00
Allan Odgaard
af8d8d3dbb Show in Finder works for multiple selected items 2013-01-17 09:16:04 +01:00
Allan Odgaard
d7198ed776 Update dialog plugins
Fixes #584
2013-01-17 09:16:04 +01:00
Allan Odgaard
372f1a780e Don’t link to GitHub’s download section
This is an attempt of satisfying issue #677 — not entirely sure what was intended by opening that issue (given that nothing is presently broken and I surely will figure out another place to upload the builds once GitHub’s service is shut down completely).
2013-01-17 09:16:04 +01:00
Allan Odgaard
edbf9ac079 Optimize path::disambiguate
We now sort the reversed paths and do a linear sweep.
2013-01-17 09:16:04 +01:00
Boris Dušek
1bcdf4abe2 Make OakTabBarView accessible 2013-01-17 08:53:14 +01:00
Boris Dušek
7d47dd279f Make OakPasteboardSelector accessible
Issues remaining:

* VoiceOver for some reason cannot track keyboard focus
  (i.e. moving down the list with just down arrow does not move
  VoiceOver cursor). User has to move the VO cursor instead using VO-down
  (and keyboard cursor follows in this case)
* the pasteboard window isn't focused automatically for VoiceOver, user
  has to switch manually to it using VO-F2-F2
2013-01-17 08:53:13 +01:00
Caleb Land
cca891d74c Add “Show in Finder” context menu when no items are selected
When you control-click the empty part of the file browser and select “Show in Finder” a Finder window will open showing the currently selected folder.

You can go about this other ways, but I find that this feature complements the already existing "New Folder" menu item in the no-items-selected context menu of the file browser.

This patch is public domain.
2013-01-17 08:39:00 +01:00
Allan Odgaard
d7661fc7bb Picking “Other…” in file browser would stick
Issue #673.
2013-01-16 04:42:51 +01:00
Allan Odgaard
a2a3bf96b5 Enable ‘Go → Reload’ when text view is focused
Previously would only work if focus was in the file browser.

Issue #674.
2013-01-16 04:42:51 +01:00
Allan Odgaard
2e43970d05 Don’t ask to save untitled documents during quit
This is only if there are no other documents with unsaved changes and the user has ‘open documents from last session’ enabled in preferences.

The rationale behind only offering it for untitled documents is that we can be sure that these will not be modified by another program while TextMate is not running. It also seems to be less valuable to have TextMate keep unsaved changes to a file that exist on disk, in fact, it’s a pretty bad behavior IMHO (and dangerous if other programs may work on the file).
2013-01-16 04:42:51 +01:00
Allan Odgaard
8611aa3f11 Introduce document_t::detach_backup
This will reset the document’s backup path but not delete the backup on disk (which can be found via the document’s identifier).

This is useful if we wish to dispose the document but reconstruct it later (e.g. during application termination).
2013-01-16 04:42:51 +01:00
Allan Odgaard
3835b55a55 Fix resize constraints for file browser / HTML output
These were set to ‘NSLayoutPriorityRequired-1’ which is higher than the window’s size constraints, meaning that resizing the window would not allow shrinking the file browser (or HTML output) views, furthermore, by making the views larger (when dragging the divider) the growth would not be constrained by the current window size, so it was possible to make the window grow with it.

The priority is now the proper NSLayoutPriorityDragThatCannotResizeWindow.
2013-01-16 04:42:51 +01:00
Allan Odgaard
10b794bb96 Creating empty glob_list_t matches everything
This is more than creating a glob_list_t containing just ‘*’, as the latter does not match hidden files, so it is more like ‘{*,.*}’, which is a bit arcane, so I think it’s better to allow using an empty list in cases where you wish to match everything (but the API accepts a glob list for filtering purposes).
2013-01-16 04:42:51 +01:00
Allan Odgaard
fd14df1800 Default file type is Objective-C++ for this project
Previously it was C++ — not sure if a setting like this belongs in the project or should be user-specific. Presently though the .tm_properties system lack a way to include user specific files, and while one can put the settings in ~/.tm_properties and make them target a (project) sub-folder, they would not override the settings set in the project.
2013-01-16 04:42:51 +01:00
Allan Odgaard
4f7deb09d8 Let symbolicator script find and extract dsym.tbz 2013-01-16 04:42:50 +01:00
Allan Odgaard
2d8d393878 Close excess tabs when tab bar overflows 2013-01-16 04:42:50 +01:00
Allan Odgaard
f984664921 Add recursion guard to mouseDown:
It’s not clear to me how we end up calling ourself, but I see (stack overflow) crash reports that has mouseDown: interspersed with forwardMethod.
2013-01-16 04:42:50 +01:00
Allan Odgaard
d178263cca ARC: Update HTMLOutput framework 2013-01-16 04:42:50 +01:00
Allan Odgaard
53bd39b636 Rework HTML output toolbar
The toolbar now uses standard system controls for better accessibility.
2013-01-16 04:41:27 +01:00
Allan Odgaard
69904bef75 Improve look of navigation bar 2013-01-16 04:40:20 +01:00