Commit Graph

631 Commits

Author SHA1 Message Date
Allan Odgaard
fa6659db28 Update dyn.caret/selection scopes
If there is one or more selections:

    dyn.selection

If there is a single zero-width selection:

    dyn.caret.mixed.columnar

If there are multiple carets and/or selections:

    dyn.caret.mixed

When there is only a single caret or a single continuous selection the left scope may contain:

    dyn.caret.begin.line
    dyn.caret.begin.document

Likewise the right scope may contain:

    dyn.caret.end.line
    dyn.caret.end.document
2012-09-30 15:25:45 +02:00
Allan Odgaard
cba6b3275b Send crash reports in low-priority dispatch queue 2012-09-30 15:25:45 +02:00
Allan Odgaard
67ab3de2b1 Refactor crash reporting code 2012-09-30 15:25:44 +02:00
Allan Odgaard
49c37ca864 Skip ‘null’ payload fields when posting to server 2012-09-30 15:25:44 +02:00
Allan Odgaard
e97efb3f67 Use dispatch queues for signal actions 2012-09-30 15:25:44 +02:00
Allan Odgaard
efb6eb6b08 Update required headers 2012-09-30 15:25:44 +02:00
Allan Odgaard
456374342a Remove use of openssl constants 2012-09-30 15:25:44 +02:00
Allan Odgaard
15bd31880e Update about text 2012-09-30 15:25:44 +02:00
Allan Odgaard
144825e3f9 Checkin release notes 2012-09-29 01:19:42 +02:00
Allan Odgaard
ffbcd192ef Fix ⌘1-⌘n for about window
We have to go via OakSubmenuController because the menu item may not exist. The reason for this is related to not having old menu items exist after a delegate has disappeared, though it might be possible to improve.
2012-09-29 00:46:26 +02:00
Allan Odgaard
7af2a71de0 Conditionally show release notes during startup 2012-09-29 00:39:14 +02:00
Allan Odgaard
fcfec66214 Hookup About TextMate to about window 2012-09-29 00:39:14 +02:00
Rasmus Abrahamsen
eb248eb579 Combine about, changes, and credits window
This includes bundle changes.
2012-09-29 00:39:14 +02:00
Allan Odgaard
a29479bca7 Remove Credits / License menu item 2012-09-29 00:21:53 +02:00
Allan Odgaard
6272ea40e8 Remove release notes handling
This doesn’t really belong in the software update framework.
2012-09-29 00:20:38 +02:00
Allan Odgaard
98b4c07083 Add function to obtain bundle changes
This requires that the bundle contains a Changes.json.
2012-09-29 00:16:07 +02:00
Allan Odgaard
df6c6f5f8b Avoid using ‘-q’ with pgrep
The version installed via MacPorts does not have such option so relaunching TextMate (after successful build) would not work.
2012-09-29 00:16:07 +02:00
Allan Odgaard
c77c6fc4e2 Let gen_build support TM_NINJA
This is for when building from TextMate and PATH has not been setup to contain the directory containing ninja.
2012-09-28 16:36:37 +02:00
Allan Odgaard
9f2a4c74da Add callback.document.will-save
Commands can prepare the document for saving in this callback, e.g. strip trailing whitespace (issue #35), ensure the line always has a newline character as the last byte in the document (issue #76), or similar.

Presently having a “will-save” command fail does not abort saving (but likely should). Also, there is no check to see if the command called requires the document to be saved before running, so that likely leads to an infinite loop.
2012-09-27 17:52:41 +02:00
Allan Odgaard
e1dd99a0f5 Add window to “document will save” notification
The text view needs to do a little work before saving a document (serialize folded text) and with the window as part of the user data, we can now skip that for text views in windows for which documents are not going to be saved.

This is not an ideal solution; long-term saving will be moved up to the DocumentWindowController which has the full view of all documents and text views.
2012-09-27 17:52:41 +02:00
Allan Odgaard
cf62b6e92b Improve error text for missing shell commands 2012-09-27 17:52:41 +02:00
Allan Odgaard
ea85d37dff Use literal ‘⇥’ instead of ‘\u21E5’ 2012-09-27 17:52:41 +02:00
Allan Odgaard
e1fc3993f0 Improve editor performance when file browser show lots of stuff
Delays may still be experienced when a file is opened or its “modified” state is changed but general edits should no longer be affected by how much is showing in the file browser.

This addresses issue #463.
2012-09-26 00:26:01 +02:00
Allan Odgaard
e958a04945 Potentially resize gutter when bounds change 2012-09-25 22:06:16 +02:00
Allan Odgaard
e969b4cade Hide OakControl implementation 2012-09-25 16:18:08 +02:00
Allan Odgaard
a9412d7920 Minor change to tab bar view properties
We now set the isExpanded property during initialize and use a property to reflect the current user preference for wether or not to collapse when there is just one tab.
2012-09-25 16:18:08 +02:00
Allan Odgaard
695ee00b3b Remove binding support from OakTabBarView
Initially this was used but I found that a data source approach worked better, as it made things more explicit (and this easier to follow).
2012-09-25 16:18:08 +02:00
Allan Odgaard
2edf3bb56e Add comments translating code points 2012-09-25 16:18:08 +02:00
Allan Odgaard
71c1febc34 Constrain gutter view’s top to that of the text view
This might be what’s causing the gutter view to sometimes be shorter than the text view, although it’s merely a hunch.
2012-09-25 16:18:01 +02:00
Allan Odgaard
a0c4af64bd Remove trailing whitespace
Only removed from non-empty lines.
2012-09-25 14:16:50 +02:00
Allan Odgaard
983bce86aa Use @autoreleasepool blocks 2012-09-25 12:30:12 +02:00
Allan Odgaard
7d50b4db92 Change version bumping rules
We no longer do an implicit bump after deploy — this should be done, but as we also want to do a bump before deploy (so deployment builds do not share revision with any custom builds) we need the bump rule to be usable by itself.

Also fix issue with bumping APP_REVISION in build.ninja not affecting APP_VERSION after rebuilding build.ninja.

And additionally include user file after main build.ninja.
2012-09-25 01:41:07 +02:00
Allan Odgaard
1715c1e3b5 Checkin release notes 2012-09-24 22:57:50 +02:00
Allan Odgaard
80422c2b46 Exclude variables when dumping all settings
The variables can already be shown by running ‘env’ via ⌃R.
2012-09-24 22:57:50 +02:00
Allan Odgaard
2aa0be435f Change --key → --setting
The generic tm_query name makes me think we may later use it to query TextMate about other things than settings.
2012-09-24 22:57:49 +02:00
Allan Odgaard
56bbac282d If requested setting is not found, we return 1 2012-09-24 22:24:02 +02:00
Allan Odgaard
15ad4876b0 If no path is given, use TM variables
This allows simply calling (for example):

    "$TM_QUERY" --key windowTitle

And it’ll return the window title in effect for the current file.
2012-09-24 22:18:39 +02:00
Allan Odgaard
d730059382 Print file name as given rather than as full path 2012-09-24 22:16:24 +02:00
Allan Odgaard
ed33eb5021 Use Inherited environment for settings
This ensures we get e.g. windowTitle based on TM_DISPLAYNAME etc.
2012-09-24 21:57:21 +02:00
Allan Odgaard
68c0738ff2 Add tm_query executable to TextMate.app
We expose the tool via a TM_QUERY environment variable.
2012-09-24 21:32:29 +02:00
Allan Odgaard
7df336664a Add set_basic_environment
This is in cases where we don’t want the “clean” environment setup by default.
2012-09-24 21:32:29 +02:00
Allan Odgaard
46639b4bd6 Skip querying for variables
Since variables are already part of the settings, this is not necessary.
2012-09-24 21:32:29 +02:00
Allan Odgaard
f4e0bb88c7 Add default properties to search path
The default settings located inside TextMate.app are only available when called from TextMate (since it relies on the TM_APP_PATH environment variable)
2012-09-24 21:32:29 +02:00
Ole Gammelgaard Poulsen
ca25560f19 Added tm_query CLI that returns settings and variables for a file 2012-09-24 21:32:29 +02:00
Allan Odgaard
062e8e4e62 Add skeleton for tm_query tool 2012-09-24 21:32:29 +02:00
Allan Odgaard
4ed34392d6 Use synthesized instance variables 2012-09-24 21:15:47 +02:00
Allan Odgaard
c3de1a09f5 Move code out of header 2012-09-24 20:58:43 +02:00
Allan Odgaard
962bf5149b ARC: Update HTMLOutputWindow framework 2012-09-24 20:58:43 +02:00
Allan Odgaard
45d38ff6c8 Use synthesized instance variables 2012-09-24 20:58:43 +02:00
Allan Odgaard
50217a73ba Let precompiled headers depend on compiler 2012-09-24 20:58:43 +02:00