Commit Graph

1221 Commits

Author SHA1 Message Date
Allan Odgaard
f0ab7aa6fe Checkin release notes v2.0-alpha.9379 2013-02-15 15:57:20 +01:00
Allan Odgaard
c031557df2 Add ‘New Document’ to file browser
This create a new file on disk and brings up the “rename” text field.

You can control the type/extension either in Preferences → New document type or by setting it in .tm_properties, e.g.:

    [ attr.untitled ]
    fileType = 'source.objc++'

New Document can be undone, but it is handled by deleting the file on disk and losing potential edits you have made since creating it.

Closes #161.
2013-02-15 15:27:57 +01:00
Allan Odgaard
52ba0cb5c2 Add file manager support for ‘new file’ 2013-02-15 15:27:57 +01:00
Allan Odgaard
873b9e8ced Introduce TM_PROPERTIES_PATH
This will be a colon-separated list of the .tm_properties files sourced for the current context. Mainly for debug purposes but could be used for an “Edit Properties…” command that show existing files (without having to scan the disk).
2013-02-15 15:27:56 +01:00
Allan Odgaard
9637ca051f Only set CWD for root section
The bracketed sections inherit from the root section, so there is no need to set this variable for each.
2013-02-15 15:27:56 +01:00
Allan Odgaard
fbf76bbd79 Update file browser when a document changes path
This is required incase the file is open, as we then want the new path to show the close button.
2013-02-15 15:27:56 +01:00
Allan Odgaard
4c96cb5258 Reject custom project directory if not an absolute path 2013-02-15 15:27:56 +01:00
Allan Odgaard
88cc5021a9 Add API for starting edit of item in file browser 2013-02-15 15:27:56 +01:00
Allan Odgaard
f507c75c0e Add directoryForNewItems property to file browser 2013-02-15 15:27:55 +01:00
Allan Odgaard
4909d2cf53 Remove last zero in version 2.0.0 → 2.0 2013-02-15 15:27:55 +01:00
Allan Odgaard
84b71c7640 Add swiping gesture support for 10.8
I am not sure what Apple’s thinking is here. We have swipeWithEvent: which worked on 10.7 but seems to no longer work, yet there is a global preference for configuring a swipe gesture and Safari supports that config option, but it appears other apps have to role their own implementation.
2013-02-15 15:27:55 +01:00
Allan Odgaard
c65e0718e6 Show human readable version string
This is instead of only showing the revision, which lack semantic info such as ‘alpha’ and 2.0 versus 1.5.11.

We now also show the version after a successful download instead of just “Download Completed”.
2013-02-15 15:27:55 +01:00
Allan Odgaard
9f095a52bc Close files deleted via file browser
Files with changes are kept open and only files deleted via file browser actually close. It’ll make sense to also close files which are “moved to trash” (but want to do some refactoring before adding that).

Closes #512.
2013-02-15 15:27:55 +01:00
Allan Odgaard
72d0b9757b Post OakFileManagerWillDeleteItemAtPath 2013-02-15 15:27:55 +01:00
Allan Odgaard
a4dc3bf977 OakFileManagerDirectoryKey → OakFileManagerPathKey
This allows us to use the same key for more than just directories. The notification name itself should indicate if the ‘path’ refers only to directories or files.
2013-02-15 15:27:54 +01:00
Allan Odgaard
deffe08d1b Fix new selected item after delete 2013-02-15 15:27:54 +01:00
Allan Odgaard
c456d7e035 Handle linking to directories in HTML output
We now check for an ‘index.html’ when a file:-link points to a directory. If no such file exist then we show the “Not Found” error page.

This is to work with offline docs that doesn’t include the ‘index.html’ in the URL.
2013-02-15 15:27:54 +01:00
Allan Odgaard
58feb5dd43 Remove “crash guard”
This should no longer be possible now that the callback won’t be called after the scm info has been destroyed.

This reverts fce82f0759.
2013-02-15 15:27:54 +01:00
Allan Odgaard
d0e0835e82 Better hiding of scm::ng::info_t implementation 2013-02-15 15:27:54 +01:00
Allan Odgaard
e7ed62c305 Don’t unnecessarily retain scm::ng::info_ptr
This ensures that when an scm::ng::info_ptr object has been disposed by the user, the associated callback will not be called (as no-one else will keep it retained).
2013-02-15 15:27:53 +01:00
Michael Sheets
ecd666f24a Improve constraint widths for status bar.
- Set compression priorities to collapse fields in a desirable order.
- Increase default width of selection string to fit 8888:88
- Set grammar popup to the width of the active grammar and give is sensible minimum/maximum widths.
- Set a maximum width for the tab size menu.
2013-02-15 07:09:48 -06:00
Allan Odgaard
b66912d8e8 Fix exception
This would happen if root url in file browser was not a file url and the user selected “Go to Folder…”.
2013-02-14 11:31:22 +01:00
Allan Odgaard
60a4b9520a Make internal functions private again 2013-02-14 11:31:21 +01:00
Allan Odgaard
967f08c9c0 Limit file browser header updating
This mainly relates to the folder pop-up. By delaying creation of this menu till the user actually opens it, we avoid/delay having to create potentially expensive icons (icons are “expensive” since creating one may cause TextMate to hit the disk).
2013-02-14 11:31:21 +01:00
Allan Odgaard
ad6a82bb1d Don’t explicitly update file browser header view
This is unnecessary as long as we always go via setUrl: or setHistoryIndex:
2013-02-14 11:31:21 +01:00
Allan Odgaard
3669e671c7 Strip “offset” from selection string in status bar 2013-02-14 11:31:21 +01:00
Allan Odgaard
83505a47e2 Change status bar’s “caret” property
We now use a selection string so status bar doesn’t need to know about what it actually contains.
2013-02-14 11:31:21 +01:00
Allan Odgaard
94f0c803f7 Limit status bar redraw
The NSPopUpButton itself will not bypass redisplay even if it’s title is set to the current title.
2013-02-14 11:31:20 +01:00
Allan Odgaard
785182c1b2 Enable bottom border for bundle editor window 2013-02-14 11:31:20 +01:00
Allan Odgaard
43fa57ae22 Don’t draw status bar background on window border 2013-02-14 11:31:20 +01:00
Allan Odgaard
e96dc916ef Remove commented code 2013-02-14 11:31:20 +01:00
Allan Odgaard
9338109452 Fix NSTimer related crash
The timer might be the only thing keeping us retained, so we can’t release it until the very end of the method.
2013-02-14 11:31:20 +01:00
Allan Odgaard
b37b56075a Call super in viewWillMoveToWindow: 2013-02-14 11:31:20 +01:00
Michael Sheets
05af681717 Truncate the selection string when it grows too long. 2013-02-14 11:27:53 +01:00
Michael Sheets
75c7457ee9 Use solid colors for divider line.
This is required now that they are set as opaque.
2013-02-14 02:52:08 -06:00
Allan Odgaard
8f3e99bc79 Gutter height now accounts for horizontal scrollbar
Previously the gutter and the text view were set to have the same height (via constraints). Though when the horizontal scrollbar is visible then the gutter should technically be made a little taller to account for the extra bottom margin. Not adding this space was causing problems.

Fixes #773.
2013-02-13 10:51:07 +01:00
Allan Odgaard
3bc3db00aa ARC: Update OakTextView framework 2013-02-12 23:06:48 +01:00
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