Commit Graph

601 Commits

Author SHA1 Message Date
Allan Odgaard
df853493a9 Add preliminary bundle install support. v2.0-alpha.9315 2012-09-24 23:58:32 +02:00
Allan Odgaard
4121353e00 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.
2012-09-24 23:55:12 +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
Allan Odgaard
7e53c15b67 ARC: Update layout framework (tests) 2012-09-24 20:58:43 +02:00
Allan Odgaard
de3a1ee2f0 Build tests with same compiler flags as their sources
We link the test’s .o with the .o objects from the library being tested, rather than link it with a potential dylib, hence why some flags matter.
2012-09-24 20:58:43 +02:00
Allan Odgaard
452c0b3889 Make cocoa.h usable with ARC
This means removing a few autoreleases so it’ll leak when building without ARC, but as this is just for a short-lived test, it shouldn’t matter.
2012-09-24 20:58:42 +02:00
Allan Odgaard
426b3d1257 ARC: Update CrashReporter framework 2012-09-24 20:58:42 +02:00
Allan Odgaard
596bd65140 ARC: Update BundleMenu framework 2012-09-24 20:58:42 +02:00
Étienne Després
7cc86ae8cf Add .scssc to list of non-text files
Fixes #445.
2012-09-24 20:58:42 +02:00
Rasmus Abrahamsen
ccc0b414bb Fix “replace selected” for Find All in document
Fixes issue #77.
2012-09-24 20:58:42 +02:00
Mads Hartmann Jensen
adec6e4184 Incremental search keybindings
You can now use CTRL+S and CTRL+SHIFT+S to jump forwards/backwards
in the incremental search results
2012-09-24 20:58:42 +02:00
Mads Hartmann Jensen
c2eee4578f Made the Live Search view prettier 2012-09-24 20:58:42 +02:00
Rasmus Abrahamsen
443421be84 Fix CRLF issue #409. 2012-09-24 20:58:41 +02:00
Allan Odgaard
9d97fdfdb0 Find in Folder: Add failing CRLF test 2012-09-24 20:58:41 +02:00
Sudara
62e2fc77fc Consider .ai and .gif files binary by default
A courtesy to anyone with images and illustrator files in their project!
2012-09-24 20:58:41 +02:00
Allan Odgaard
0cea361b00 Explicit timer invalidation 2012-09-22 13:23:41 +02:00
Allan Odgaard
56b96e7f07 ARC: Update OakFoundation framework 2012-09-22 13:23:41 +02:00
Allan Odgaard
ed7a93af93 Allow enabling ARC per target
The issue is that the precompiled header must also be created with ARC enabled, so now we use different precompiled headers depending on wether or not the file to be compiled has -fobjc-arc enabled.

The way this is done is hardcoded for the ARC options, it might be nice to abstract it so that the PCH dependency had a name derived from the PCH-sensitive compiler options.
2012-09-22 13:23:40 +02:00
Allan Odgaard
54377e35a9 Checkin release notes 2012-09-21 20:32:32 +02:00
Allan Odgaard
02ab2e858a Local key bindings no longer eclipse the default set 2012-09-21 20:32:31 +02:00
Allan Odgaard
e5e2385be7 Remove “execute selection” menu items
These actions are available as bundle items.
2012-09-21 20:32:31 +02:00
Allan Odgaard
bae6270d6c Add indent aware begin/end of line action methods
The methods going to “begin of indented line” will go to the first non-whitespace character on the line, unless the caret is already there or to the left of this character, in which case it will go to the actual beginning of the line.

The “end of indented line” methods work similarly.

If you want [⇪]⌘⇠/⇢ and ⌘⌫/⌦ to use this behavior, you can add the following to your key bindings file:

	"@\UF702"  = "moveToBeginningOfIndentedLine:";
	"$@\UF702" = "moveToBeginningOfIndentedLineAndModifySelection:";
	"@\UF703"  = "moveToEndOfIndentedLine:";
	"$@\UF703" = "moveToEndOfIndentedLineAndModifySelection:";
	"@\U007F"  = "deleteToBeginningOfIndentedLine:";
	"@\UF728"  = "deleteToEndOfIndentedLine:";
2012-09-21 20:29:58 +02:00
Allan Odgaard
13f35bd5b1 Whitelist rather than blacklist inherited variables
Initially the environment was clean but it was found that some variables should be inherited, e.g. SSH_AUTH_SOCK.

Therefor a blacklist was introduced, but it seems futile trying to keep it updated with all the variables that may affect the behavior of commands executed from within TextMate, therefor we now use a whitelist.

Probably the whitelist should be user configurable as launchd uses environment variables to communicate dynamically allocated sockets (like SSH_AUTH_SOCK, but there are also some Apple-prefixed variables pointing to named sockets).

Issue #238.
2012-09-21 17:50:52 +02:00
Allan Odgaard
9f339bbae1 Fix thread related crash
Since the std::map hosting the basic environment was using a (function local) static initializer, it would be destroyed during exit — though there might be threads using the basic environment, and joining these might happen after destroying the basic environment.

This should explain the crash in network::launch_tbz.
2012-09-21 17:50:52 +02:00
Allan Odgaard
a1a5569ae6 Don’t select implicit padding
For example moving the selection often require padding to be inserted, previously this padding would become part of the selection.

This fixes issue #72.
2012-09-21 16:24:43 +02:00
Allan Odgaard
e4ea7834c1 Refactoring 2012-09-21 16:24:43 +02:00
Allan Odgaard
057f07448f Fix “move selection” for east asian scripts
Since it moves one column left/right and east asian scripts have their glyphs count as two columns, it would effectively move half a column, which in practice would be done by inserting a space.

Fixes issue #469.
2012-09-21 16:24:43 +02:00
Allan Odgaard
86461a30b7 Add flag to ignore east asian width 2012-09-21 16:24:42 +02:00
Allan Odgaard
3f012ff11c Recent menu ignores files created with “New Tab” 2012-09-21 16:24:42 +02:00
Allan Odgaard
b5c8e3e247 Recent menu ignores files opened via mate
You can still create an alias for ‘mate’ that calls ‘mate --recent’.

The motivation for this change is that stuff you open via mate is generally SCM commit messages, the cron tab, included files (opened from within TextMate via bundle commands), and other such things. Additionally I think that if you open files via ‘mate’ you would just repeat the line in your shell, though I know not all users feel this way.

Folders opened via mate does go into the recent menu.
2012-09-21 16:23:35 +02:00
Allan Odgaard
fbbe4ddac7 Cap line number when requesting info from layout
With the new constraint based layout, the gutter can issue line record requests before the layout has been updated to hold the new document buffer.
2012-09-21 16:23:35 +02:00
Allan Odgaard
8ea658b3cf Command-clicking single caret could lead to crash
Command-clicking an existing caret normally toggles, unless there only is a single caret, in which case it adds a caret. This would thus allow you to add a new caret sharing the position of the existing, and command-clicking again would then remove both the two existing carets, leading to an assertion failure (as there were no carets).

Fixes issue #466.
2012-09-21 16:23:35 +02:00
Allan Odgaard
a3cae448b1 fixup! Use Objective-C for…in instead of macro 2012-09-21 16:23:35 +02:00