Commit Graph

1184 Commits

Author SHA1 Message Date
Allan Odgaard
007dd2db00 Use ‘refuses first responder’ property
We still need the subclass for rendering the control as active, but the less we override the better.
2013-02-12 22:01:02 +01:00
Allan Odgaard
ba7b1b1be7 Fix coding style 2013-02-12 21:55:56 +01:00
Michael Sheets
2bd089ffe5 Match HTML divider color with the status bar divider 2013-02-12 21:55:56 +01:00
Allan Odgaard
f886b0cb13 Update text view status bar to use system controls 2013-02-12 21:55:56 +01:00
Allan Odgaard
402e1f79b1 Use one bundle menu delegate for all menus
This avoids the problem of keeping the delegate retained while the menu is up (the menu item exists).
2013-02-12 20:11:50 +01:00
Allan Odgaard
8ef92c29f9 Set bottom border for HTML window 2013-02-12 15:49:53 +01:00
Allan Odgaard
c46070f9ff Omit background fill if we have a border 2013-02-12 15:49:52 +01:00
Allan Odgaard
83d0df4b2c Don’t set HTML output views as opaque 2013-02-12 15:49:52 +01:00
Michael Sheets
9e56b73797 Restyle html view status bar to match others 2013-02-12 15:49:34 +01:00
Allan Odgaard
2588d57421 Change where we invalidate cursor rects
Maybe closes #783.
2013-02-12 11:09:24 +01:00
Allan Odgaard
50a7c17dbd Use initializer list with path::join 2013-02-12 11:09:24 +01:00
Allan Odgaard
f05c76a882 Implement path::join for initializer lists
This allows passing multiple path components to path::join
2013-02-12 11:09:24 +01:00
Allan Odgaard
6acafbe190 Ensure we have valid SCM status 2013-02-12 11:09:24 +01:00
Allan Odgaard
c6f228fbdf Redirect stderr when LOG_PATH is set
You need to set this variable for launchd, so that it is inherited by TextMate. Unfortunately launchd only reads /etc/launchd.conf so unless you want to set this variable globally then you need to run something like the following before starting TextMate:

    launchctl setenv LOG_PATH "$HOME/Library/Logs"
2013-02-12 11:04:55 +01:00
Allan Odgaard
26fe4a95e9 Add Edit → Select → None (⇧⌘A)
This can be used to deselect all in the file browser.

Closes #779.
2013-02-11 22:05:44 +01:00
Allan Odgaard
0a0d9a3d9b Assign key equivalents to Go → Back/Forward
We use ⌘[ and ⌘] which is also used for Text → Shift Left/Right so we only set these keys for when the main text view is not active.

The main advantage is that you can now use these keys to move back and forth in history of HTML views (it also works in file browser, but due to a custom keyDown: overload, it also worked prior to this commit).
2013-02-11 21:58:29 +01:00
Allan Odgaard
cbd6d8eebe Checkin release notes v2.0-alpha.9377 2013-02-11 15:18:35 +01:00
Allan Odgaard
4a812117e7 Fix memory leak 2013-02-11 15:17:30 +01:00
Allan Odgaard
7c1c253c86 Make “Go to Favorites” a toggle 2013-02-11 14:21:24 +01:00
Allan Odgaard
a9e59f5308 Set spelling language for current folder when changed via UI
Previously we would set it for the current file (via path) and the current scope plus parent scopes.

The latter wasn’t useful, as the file type is not indicative of the language used, and as scoped settings presently have higher priority than path-based settings, it could lead to the wrong language being used, even when language was explicitly set for a folder.

Now, when changing language via Edit → Spelling menu, we set the language globally (so default for all new documents without more specific settings), all files in the current document’s folder, and the document itself.
2013-02-11 14:21:23 +01:00
Allan Odgaard
bdadf0f17f Let text view reset cut/copy menu item titles
This is necessary since opening the Edit menu with focus in file browser may update the titles to reflect files that would be cut or copied.
2013-02-11 14:21:23 +01:00
Allan Odgaard
059a8a0b75 Improve Quick Look menu item title
This now also shows what it’ll display and switches to “Close Quick Look” when the panel is already showing.
2013-02-11 14:21:23 +01:00
Allan Odgaard
2c996b6b7a Improve file browser menu titles
We now write what the actions will apply to. This isn’t done for all actions, which is somewhat consistent with Finder, though I don’t know why Finder doesn’t include such description for all items, perhaps it’s seen as redundant to state for every action (and just adds noise), so only items where user could be “confused” should explicitly state what they work on.
2013-02-11 14:21:23 +01:00
Allan Odgaard
7b017d695d Rework file browser action menu 2013-02-11 14:21:23 +01:00
Allan Odgaard
e71fd192c5 Let SIGUSR1 relaunch TextMate
This is mainly to allow a way to test the relaunch code, as it is otherwise only used for s/w updating and installing plug-ins.
2013-02-11 14:21:22 +01:00
Allan Odgaard
38dffa9dd1 Remove legacy code 2013-02-11 14:21:22 +01:00
Allan Odgaard
2f146e235f Discontinue support for OAK_ACTIVATE variable
This isn’t used by anything current.
2013-02-11 14:21:22 +01:00
Allan Odgaard
ad03811df0 Ensure session restore when relaunching
The user can manually disable session restore, which is undesired when relaunching due to a software update or installing a plug-in, so we now override the user’s choice for the new instance launched.
2013-02-11 14:21:22 +01:00
Allan Odgaard
af37d2e30a Skip group cells when selecting item after delete (file browser)
Presently this is only relevant for the SCM Status view, as no other data source use group cells.
2013-02-11 14:21:22 +01:00
Allan Odgaard
df8465e607 Align close button (×) with file labels
Closes #391.
2013-02-11 14:21:21 +01:00
Allan Odgaard
099fbdf042 Accept NULL_STR in path::info 2013-02-11 14:21:21 +01:00
Allan Odgaard
f5541b2a1c Don’t try to toggle caret with no layout 2013-02-11 14:21:21 +01:00
Allan Odgaard
8fb95309c1 Reset undo/redo menu item titles
The undo manager will change the titles (e.g. “Undo Rename”) when it’s first responder, so we need to change them back, when the text view is first responder.
2013-02-11 14:21:21 +01:00
Allan Odgaard
2acecd66f3 Show icon in Go to Tab sub menu 2013-02-11 14:21:21 +01:00
Allan Odgaard
129784816c Don’t show SCM badges for untracked items
All of these will always have the same badge, so there’s no reason to show it (and it covers the alias badge, so there is some usability benefits beyond just the visuals).
2013-02-11 14:21:21 +01:00
Allan Odgaard
507dac1908 Let FSItem use OakFileIconImage. 2013-02-11 14:21:20 +01:00
Allan Odgaard
8987a7528f Use generic file/folder icon when OakFileIconImage.path == nil 2013-02-11 14:21:20 +01:00
Allan Odgaard
b8ddc41bd0 Don’t show tool tips with only whitespace 2013-02-11 14:21:20 +01:00
Allan Odgaard
e047d458fd Fix crash in bundle editor
I have added a check to ensure we have the bundle item content (in addition to the bundle item) which fixes #774 although it is unclear to me how the bundle editor would end up in a state where it has a bundle item but no content for that item. There is a window in the setBundleItem: method where the bundle item content hasn’t yet been setup, but commitEditing is not called during that window.
2013-02-11 14:21:20 +01:00
Allan Odgaard
f980573d8b Ensure document is open during save
Saving is done asynchronously so the document might be closed while being saved. This in itself is not an issue, but the “post save” function will assume it has an open document for “marking as pristine” and executing potential “document did-save” callbacks on.
2013-02-11 14:21:20 +01:00
Allan Odgaard
6cd7d86215 Script to create default bundles would always exit successfully
We shouldn’t do anything after the essential line of the script, as we want that line’s status code to be the script’s exit status.
2013-02-11 14:21:19 +01:00
Michael Sheets
7fa0e34a5e Restyle and add graphics to file browser action bar 2013-02-09 16:34:24 +01:00
Allan Odgaard
ae02db9baa WIP: Add action bar to file browser 2013-02-09 16:34:24 +01:00
Michael Sheets
034dd8f06b Shrink height when tabs above document is enabled 2013-02-09 16:34:24 +01:00
Michael Sheets
a9d80f5a0d Increase tab bar size one pixel
This is to match the minimum allowed size for the sidebar header when the tabs above document is enabled, also matches the height of the forthcoming tab redesign.
2013-02-09 16:34:24 +01:00
Michael Sheets
2200df74fd Simplify constraints and set a height for file browser header 2013-02-09 16:34:23 +01:00
Allan Odgaard
43e15b3792 Let file browser header inherit from OakGradientView 2013-02-09 16:34:23 +01:00
Allan Odgaard
9c994af1e0 Tweak OakGradientView
- Accept two NSGradient objects instead of four colors.
- Call designated initializer on super instead of self since subclass is likely calling us from its designated initializer
- Make class public
2013-02-09 16:34:23 +01:00
Michael Sheets
9a26e0df5e Move file browser divider into parent view 2013-02-09 16:34:11 +01:00
Allan Odgaard
ddc85708f8 Allow disabling auto-indent for snippets
Snippets are normally inserted with indent matching that of the caret. This isn’t always desired, which is why TM 1.x allowed this feature to be disabled. This is now also supported for 2.0.

Closes #387.
2013-02-08 13:55:10 +01:00