Commit Graph

577 Commits

Author SHA1 Message Date
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
Allan Odgaard
6afa7601c0 Provide utf16::advance with range end
There are several crashes reported from firstRectForCharacterRange: which indicate that the system may ask for indexes “out of range”, hence why we now effectively just cap such request.
2012-09-21 01:32:41 +02:00
Allan Odgaard
56ec46e1f9 fixup! Avoid using objc_ptr 2012-09-21 01:32:41 +02:00
Allan Odgaard
a94e89d7be Remove code for beginof/endof 2012-09-20 12:22:21 +02:00
Allan Odgaard
0f3861fec7 Retire custom begin/endof functions
We can now use std::begin/end although for containers we explicitly call the member functions.
2012-09-20 12:22:21 +02:00
Allan Odgaard
c7971c5f63 Use range-based for instead of std::for_each 2012-09-20 12:22:21 +02:00
Allan Odgaard
d06bd877e2 Avoid using begin/endof with ng::ranges_t 2012-09-20 12:22:21 +02:00
Allan Odgaard
36b87ebde6 Use std::string over char const* 2012-09-20 12:22:21 +02:00
Allan Odgaard
d71b9ea324 Avoid using begin/endof with strings
Mainly this is just to phase out the use of these custom helpers.
2012-09-20 12:22:20 +02:00
Allan Odgaard
ebab500ba3 Use std::map/set instead of C arrays
These types come with a find() method and avoids having to use helper functions to get the begin/end of the array (for linear search).
2012-09-20 12:22:20 +02:00
Allan Odgaard
a9ba549cda Use strchr instead of std::find 2012-09-20 12:22:20 +02:00
Allan Odgaard
39f0ea518b Use tuple instead of lexicographical_compare 2012-09-20 12:22:20 +02:00
Allan Odgaard
45c87c47f8 Rename CocoaSTL.h → objc_ptr.h 2012-09-20 12:22:20 +02:00
Allan Odgaard
8fd7b82cbd Remove CocoaSTL.h include 2012-09-20 12:22:20 +02:00
Allan Odgaard
4273bf968b Get rid of C++ style NSIndexSet iteration 2012-09-20 12:22:19 +02:00
Allan Odgaard
2739b4cf20 Remove unused stuff from CocoaSTL.h 2012-09-20 12:22:19 +02:00
Allan Odgaard
101e0560f6 Avoid using objc_ptr 2012-09-20 12:22:19 +02:00
Allan Odgaard
4532099359 Use Objective-C for…in instead of macro
This avoids having to use C++ iterators and we want to get rid of some of this Objective-C/C++ mixing for ARC and other reasons.
2012-09-20 12:22:19 +02:00
Allan Odgaard
6b42343bd3 Add missing include 2012-09-20 12:22:19 +02:00
Allan Odgaard
017343a7dc TM_SELECTED_TEXT must not exceed ARG_MAX
If the selection exceeds ARG_MAX (256 KB) then we instead set it to a placeholder value.

Previously execve() would fail if given a selection (environment) variable too big.
2012-09-20 12:22:19 +02:00
Allan Odgaard
2ba66c5718 Add four flavors of copy to find in folder window
These actions are available from the settings / action menu in the status bar above the results.

Calling the regular copy (⌘C) copies the entire lines. Probably it should only copy the matching subset when a regular expression search has been performed.
2012-09-19 02:13:53 +02:00
Allan Odgaard
cf7191c521 Update rmate: Fix saving when path~ exists
Also change default host back to ‘localhost’ and let environment variables take precedence over rmate.rc.
2012-09-19 02:13:53 +02:00
Allan Odgaard
17bba51035 Include git commit and alpha tag in version string
This is primarily for better filtering of crash reports.
2012-09-19 00:11:11 +02:00
Allan Odgaard
22644470f8 Fix crash when clicking exactly on split view divider 2012-09-19 00:11:11 +02:00
Allan Odgaard
c7b90e4689 Checkin release notes 2012-09-18 22:57:03 +02:00