Commit Graph

1531 Commits

Author SHA1 Message Date
Allan Odgaard
9083ca8206 Close bundle install sheet on error
Previously incase of error the sheet would keep showing effectively locking up the document window.

This is related to issue #85 although the reason why installing bundles fails for some users is still unanswered.
2013-04-23 18:57:25 +07:00
Allan Odgaard
cdb75619ca Add completion callback to installBundle: 2013-04-23 18:52:08 +07:00
Allan Odgaard
93a1c37e47 Restore field editor’s value after reloading file browser
If user was creating a new file or folder and immediately started to type in the field editor, his changes were lost during reload (which would likely happen when updating SCM badge for the newly created item).
2013-04-23 14:38:18 +07:00
Allan Odgaard
fe400c1487 Disable font smoothing for dark themes
If you wish to always have font smoothing enabled you can run:

    defaults write com.macromates.TextMate.preview fontSmoothing 1

Setting the value to 0 causes it to always be disabled and deleting the key (or setting it to 2) has it disabled only for dark themes.
2013-04-21 19:17:06 +07:00
Allan Odgaard
ced23336de Harmonize a few properties
This is just implementation detail.
2013-04-21 19:15:05 +07:00
Allan Odgaard
974e263588 Remove instance data from OakTextView.h 2013-04-21 19:15:05 +07:00
Allan Odgaard
8fc7567e2e Use new focus ring API (10.7) 2013-04-21 18:27:25 +07:00
Allan Odgaard
97c9a20f6e Use localizedStandardCompare:
This is instead of our custom displayNameCompare: which has now been removed.
2013-04-21 12:20:07 +07:00
Allan Odgaard
49235210ca Use NSNumberFormatter class method
Once we drop 10.7 support we can avoid NSNumberFormatter entirely by using ‘localizedStringWithFormat:’ with ‘%lu’.
2013-04-21 12:20:07 +07:00
Allan Odgaard
0e290fd599 Use NSHost to obtain computer’s name 2013-04-21 12:20:07 +07:00
Sergey Chikuyonok
72dd8e2047 Extended OakTextView API
Added `scopeAsString` method to retrieve current scope as NSString
2013-04-21 12:20:07 +07:00
Allan Odgaard
34d92253dd Don’t log unchanged sources as failures 2013-04-13 22:37:51 +07:00
Steven Clukey
32a972da03 Make bundles in bundle preferences table sortable 2013-04-13 22:37:51 +07:00
Allan Odgaard
610624ca5a Improve variable handling when rebuilding build.ninja
Variables which are not referencing other variables are no longer provided with their literal value. Variables which do reference other variables have the reference escaped, so that ninja won’t expand the reference when rebuilding build.ninja.

There is still some redundancy in that APP_VERSION has the major + tag part stated both at the top and as a command line argument, haven’t yet figured out how to best deal with this.
v2.0-alpha.9413
2013-04-11 10:24:47 +07:00
Allan Odgaard
be83c7d91d Cleanup a failed GitHub upload
This might be moot given that the API should have been disabled by now.
2013-04-10 21:47:35 +07:00
Allan Odgaard
a18008260a Checkin release notes v2.0-alpha.9411 2013-04-10 18:25:50 +07:00
Allan Odgaard
931b56f45c Fix crash related to updating bundles
Since we get the failed sources by a const reference it is only live during the scope of the caller, and our use of blocks makes that scope shorter than the called block’s full scope.
2013-04-10 18:12:49 +07:00
Allan Odgaard
773891cd47 Introduce global setting to disable typing pairs
This is presently only settable via the ‘disableTypingPairs’ user defaults key:

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

Closes #609.
2013-04-10 10:13:01 +07:00
Allan Odgaard
7f933bfc57 Disable auto-pairing when recording macros
Since auto-pairing can be adjusted via user customization we disable it for both macro recording and replay. Old macros will need to be updated (but this was already the case, as 2.0 never did pairing as part of replay).

A better solution is to record each implicit action of the auto-pairing in the macro. This can however be added later without breaking existing macros, as the macro player will remain the same.

Closes #130.
2013-04-10 10:13:01 +07:00
Allan Odgaard
253ba83ed2 Don’t suppress file browser updates when showing field editor
Reload was suppressed because there is no good way to reload a table view when the field editor contains uncommitted changes. I decided it’s probably better to lose these changes than show stale content, as for example the change might remove the item being edited, as would be the case when undoing New Document or New Folder.

Closes #886.
2013-04-10 10:13:01 +07:00
Allan Odgaard
d45adf2fed Ask for confirmation to skip session restore
Sometimes shift is held down while TextMate is being launched for other reasons than to skip session restore, so to be safe, we are now asking the user to confirm their intent.
2013-04-10 10:13:01 +07:00
Allan Odgaard
ee4f7a48a2 Make s/w update status text resizable 2013-04-09 15:39:38 +07:00
Allan Odgaard
0111e6d089 Rework bundle update scheduling
We now store the time of last check in user defaults instead of via extended attributes on the source(s) and do a check every third hour, except of errors, where we retry after 30 minutes.

We now also check for bundle updates even if the sources hasn’t been updated. This is incase we previously updated a source but failed to then update bundles, these will now be updated when we retry, rather than next time the source index has updates.

Overall the code should be simpler and thus more robust. The text in the Bundles preferences page has also been improved slightly in that it will now tell the user if there was a problem updating the bundles, although for the specifics, the user will need to grab the log.
2013-04-09 15:39:38 +07:00
Allan Odgaard
04963caf01 Remove use of deprecated method 2013-04-09 15:39:38 +07:00
Allan Odgaard
58b101a7db Improve error log message for duplicate UUID
We now output the path of the item which use the same UUID.
2013-04-09 15:39:38 +07:00
Dirk Geurs
a2128f11cd Setup document scope attr.project.lein for Leiningen projects
Leiningen is a build automation and dependency management tool mainly used for Clojure projects.

https://github.com/technomancy/leiningen
2013-04-03 23:07:30 +07:00
Allan Odgaard
0bf02dbeff Move divider line functions to OakUIConstructionFunctions.h 2013-04-02 04:11:32 +07:00
Allan Odgaard
d72baacff4 Move divider image creation to OakUIConstructionFunctions.h 2013-04-02 04:11:32 +07:00
Allan Odgaard
a76e1f19fb Rename local OakCreatePopUpButton functions
This is to avoid clashing with the public helper function.
2013-04-02 03:59:28 +07:00
Allan Odgaard
9b94a279ac Setup document scopes for initial untitled document 2013-04-01 13:22:41 +07:00
Allan Odgaard
ea206ed269 Setup attr.os-version as part of document scopes
While not exactly a document scope, the advantage is that document scopes are always set, where project scopes are only setup for “projects”.
2013-04-01 13:22:41 +07:00
Allan Odgaard
c54360fce3 Don’t expand APP_* variables in build.ninja
This makes it simpler to edit the generated file as one only need to edit the top variable section.
2013-04-01 13:22:41 +07:00
Allan Odgaard
9a7b440c5a Fix off-by-one when validating folding ranges
Closes #927.
2013-04-01 13:22:41 +07:00
Boris Dušek
95ce9d5197 Post AXValueChanged when changing selected tab
If this is on, then VoiceOver reads the name of the new tab being
switched to, enabling easier navigation between open tabs.
2013-04-01 13:22:41 +07:00
Boris Dušek
65ae6a22b4 Improve accessibility of file browser items
Make available to accessibility the following information that file
browser displays visual indication for:

* file type (whether the file is a file, folder etc.)
* SCM status (whether the file is modified etc.)
* close button (whether the file is open)

Also, while we are at it,  make available to accessibility the
tooltip, filename and URL.
2013-04-01 13:22:41 +07:00
Boris Dušek
5842733e6d Make scope bar buttons AXCheckbox'es for accessibility
This notifies the user the choice is exclusive to only one
button. Also including these buttons in an AXRadioGroup adds
positional indication to the radio buttons (like "2 of 3")
which gives sense of how many values there are to choose from,
where in the list of those the user currently is, and, if there
are more sequential AXRadioGroups (which is not the case here),
it distinguishes in which one the user is making a choice.
2013-04-01 13:22:41 +07:00
Allan Odgaard
b8c81b4acf Fix software updater to not skip checking
Initially ‘downloadWindow’ was a property that was nil until we showed the download window, but now that the download window is re-used for downloading newer versions (incase a newer version appear before user does the “Install & Relaunch”) the fetching the property will return the window (and create it if not already created).
v2.0-alpha.9409
2013-03-28 22:01:40 +01:00
Allan Odgaard
6a9448afc0 Checkin release notes v2.0-alpha.9407 2013-03-27 17:26:36 +01:00
Allan Odgaard
1aedd95ef5 Find dialog actions are now recorded (for replay)
Presently though replaying “Replace and Find” is not implemented.
2013-03-27 17:19:10 +01:00
Allan Odgaard
b280e776b3 Make OakFindServerProtocol conform to NSObject 2013-03-27 17:06:27 +01:00
Allan Odgaard
b0726652db Record find actions via primary selector
Still lack recording for Find dialog actions.
2013-03-27 16:27:54 +01:00
Allan Odgaard
26d3029ba0 Treat bundle items without path as modified
This allows us to create an in-memory bundle item, reveal in bundle editor, and have the bundle editor warn if the user doesn’t save.
2013-03-27 14:32:26 +01:00
Allan Odgaard
a9d492ab58 Add Edit → Macros → Save Macro… (⌃⌘M) 2013-03-27 14:32:26 +01:00
Allan Odgaard
3dc05d9fc9 Implement Save Macro functionality
Closes #459.
2013-03-27 14:32:22 +01:00
Allan Odgaard
8358ffb578 Add “find bundle for new items” API
We need this when installing standalone bundle items, saving macros, and when creating items in the bundle editor without a bundle selected.

The user experience of this code is however rather poor in that you can’t actually crete new bundles, the dialog text is not specific, and the logic for what bundle to preselect can be improved (prefer previously created bundle falling back on a local bundle, if any).
2013-03-27 14:15:54 +01:00
Allan Odgaard
8888865f2c Use initializer list constructor for std::map (C++11) 2013-03-27 13:41:07 +01:00
Allan Odgaard
17bdfd0ad7 Revert "Space can be used instead of slash in file chooser (⌘T)"
Several people dislike the change (see issue #893) and the commit didn’t introduce new functionality per se: full path searching is still available when explicitly typing a slash.

This reverts commit 619c19e8ed.
2013-03-27 11:36:12 +01:00
Allan Odgaard
9af77ef3ab Wrong path was rescanned when changing bundles 2013-03-26 21:18:18 +01:00
Allan Odgaard
d54bf55dc0 Don’t show “pop-out” animation for empty rects
Fixes #833.
2013-03-26 17:54:59 +01:00
Allan Odgaard
4937b51d02 Show warning when undo deletes non-empty folder
Closes issue #782.
2013-03-26 17:41:51 +01:00