Commit Graph

1794 Commits

Author SHA1 Message Date
Allan Odgaard
4ff42bf49f Print debug info when saving from bundle editor v2.0-alpha.9455 2013-07-31 21:04:49 +02:00
Allan Odgaard
7e1242b26f Improve handling of zero-width search results
Previously when using find next/previous and the caret was already on a zero-width match position, TextMate would stay on this match.
2013-07-31 20:58:10 +02:00
Allan Odgaard
267471d7bb Account for multi-byte characters when moving search position
Fixes #1070
2013-07-31 20:24:16 +02:00
Allan Odgaard
9072ba8d26 Collect info related to potential crash 2013-07-31 18:42:31 +02:00
Allan Odgaard
afcba9b1e8 Collect info related to a crash 2013-07-31 17:55:24 +02:00
Allan Odgaard
bbde9b61c3 Improve ability to aggregate info in crash reports 2013-07-31 17:52:32 +02:00
Allan Odgaard
99b75e9dfb Checkin release notes 2013-07-31 17:32:42 +02:00
Allan Odgaard
a7771287ef Listen on IPv6 interface instead of only IPv4 (rmate)
Fixes textmate/rmate#19
2013-07-31 15:03:19 +02:00
Jacob Bandes-Storch
17e822896e Add Quick Look generator
Closes #1062
2013-07-30 23:11:49 +02:00
Allan Odgaard
2f4370dc9b Implement ‘-=’ for target files
Presently only for “string keys” like compiler and linker flags.
2013-07-30 23:11:48 +02:00
Jacob Bandes-Storch
847bef3bdd Use @rpath so frameworks can be loaded from the app bundle
@executable_path is the originally-executed program, whereas @loader_path is the program that caused the load to occur (e.g. a Quick Look generator). @rpath can be changed at link time — a QL generator can specify a value that points to the enclosing app bundle’s Frameworks directory.
2013-07-30 22:16:17 +02:00
Allan Odgaard
9eda1a473b Remove path::identifier_t 2013-07-30 15:44:18 +02:00
Allan Odgaard
1d4d3bd3d3 Fix path/inode lookup when opening documents
The strategy is to prefer an existing document with same path and if there is none, check if there is a document with the same inode. The latter is so that links or files that have been moved, do not create duplicate documents.

The old code used a single map for the lookup, using path::identifier_t as key (wrapping path and/or inode), though since the map is ordered, the code would occasionally fail, as the keys cannot be correctly ordered (so effectively this reworked code is a fix for an incorrect path::identifier_t::operator<).

Fixes #1052.
2013-07-30 15:34:17 +02:00
Allan Odgaard
a4a2af726a Use std::mutex instead of OSSpinLock 2013-07-30 15:34:17 +02:00
Allan Odgaard
e0e7059500 Limit use of path::identifier_t 2013-07-30 15:34:17 +02:00
Allan Odgaard
b09d1974ea Improve speed of stopping the document scanner
Closes #1069.
2013-07-29 16:24:29 +02:00
Allan Odgaard
0a64d372a9 Improve lstat error message 2013-07-29 16:07:33 +02:00
Allan Odgaard
24bd109ccc Store tab size with backups 2013-07-29 16:06:15 +02:00
Allan Odgaard
c69112dbe3 fixup! Account for svn returning relative paths
Turns out the paths are relative to the current working directory, not the working copy.
2013-07-29 15:50:31 +02:00
Allan Odgaard
05efb628b4 Setup indent settings at a higher level
We now setup the indent settings when creating untitled documents where we know the folder, so that we can use potential settings scoped to that folder.

Since the document itself no longer sets this as part of regular buffer setup, we also set it when opening a document with a path, and when changing a document’s file type, although the latter is probably temporary.

Closes #305.
2013-07-29 15:50:31 +02:00
Allan Odgaard
9d37cb976a Remove unnecessary call to c_str 2013-07-29 15:50:31 +02:00
Allan Odgaard
a05088f9be Document from content now sets file type and tab settings
Presently we also set file type (and thus indirectly indent settings) when “opening” a document, but I wish to remove that code, so that one can create a document, set all desired settings, and not worry about later code overwriting these settings.
2013-07-29 13:56:15 +02:00
Allan Odgaard
ad44540209 Use document’s indent accessor instead of going via buffer() 2013-07-29 12:43:37 +02:00
Allan Odgaard
2ad22d7662 Add indent accessor to document_t 2013-07-29 10:11:51 +02:00
Allan Odgaard
585a32344a Allow comparison of text::indent_t 2013-07-29 10:03:25 +02:00
Allan Odgaard
1ff981ea77 Remove unused argument for file::path_attributes 2013-07-29 10:02:22 +02:00
Jacob Bandes-Storch
5a7bd6c914 Add usernames for missing GitHub email addresses 2013-07-28 21:57:51 +02:00
Jacob Bandes-Storch
5bfd29b604 Move load_bundles to bundles framework 2013-07-28 21:57:51 +02:00
Jacob Bandes-Storch
d89571956d Move fs_cache to plist framework 2013-07-28 21:57:50 +02:00
Jacob Bandes-Storch
f2df57df60 Rename “index.{cc,h}” to the more appropriate “item.{cc,h}” 2013-07-28 21:57:31 +02:00
Jacob Bandes-Storch
97199ad0a6 Move some bundles code from index.h to query.h 2013-07-28 21:57:31 +02:00
Jacob Bandes-Storch
80327f7bb7 Modify gen_build to accept keys for copying into nested directories 2013-07-27 19:21:07 -07:00
Jacob Bandes-Storch
79a1f49ec5 fixup! Show a tool tip when searching wraps around 2013-07-28 00:15:45 +02:00
Allan Odgaard
2bdea516e3 Avoid multiple carets after a “replace all”
If using folder search and replacements were done in an open document, then a caret would previously appear after each replacement.
2013-07-27 16:30:02 +02:00
Allan Odgaard
98585e166e Use byte range for replacement API 2013-07-27 16:30:02 +02:00
Allan Odgaard
db070efed8 Replace after a folder search now use the decoded content
This wasn’t a problem before, as we didn’t decode the content prior to doing a folder search.
2013-07-27 16:28:44 +02:00
Allan Odgaard
18436e4943 BOM scanning now store size in optional out parameter
We generally wish to skip the BOM, so knowing the size is useful.
2013-07-27 12:33:34 +02:00
Allan Odgaard
8094d61ec4 Only open documents that are already open (during save)
The “find in folder” will create documents, set their content, and potentially save them.

If a document is not open, it should save it without going through the content examination for file type and similar, which is part of opening a non-open document.
2013-07-27 12:26:49 +02:00
Allan Odgaard
75f82957f9 Exclude potential build folder from ⌘T / ⇧⌘F 2013-07-27 11:01:50 +02:00
Allan Odgaard
6718a8a32c Use libdispatch for threaded write to pipe 2013-07-26 23:09:14 +02:00
Allan Odgaard
b48ec4e4b0 Improve implementation of kill_process_group_in_background 2013-07-26 22:46:44 +02:00
Allan Odgaard
34c44bd647 Don’t create NSSpellChecker tags until needed 2013-07-26 22:45:36 +02:00
Allan Odgaard
cf3264cfc5 Remove test stack dump from symbolicate script
This sometimes show up in folder searches.
2013-07-26 22:24:11 +02:00
Allan Odgaard
bc1fae555a Update testing system for layout framework 2013-07-26 17:37:16 +02:00
Allan Odgaard
7ed6199df1 Print error if scandir/lstat fails v2.0-alpha.9451 2013-07-26 16:26:20 +02:00
Allan Odgaard
866057f31d Better error reporting when copying git index
Also avoid a (sort of) race condition (related to meaningful error) by using fcopyfile().
2013-07-26 16:21:33 +02:00
Allan Odgaard
1467a0b44b Update testing system for regexp framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
f05426378c Update testing system for text framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
72c34bc33a Update testing system for plist framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
cb098b4d80 Update testing system for scope framework 2013-07-26 13:53:58 +02:00