Commit Graph

1773 Commits

Author SHA1 Message Date
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
Allan Odgaard
0c59a10aa1 Update testing system for selection framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
efe617b4bc Update testing system for theme framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
707e026c19 Update testing system for Find framework 2013-07-26 13:53:58 +02:00
Allan Odgaard
2e488b4ee7 Update testing system for bundles framework 2013-07-26 13:53:57 +02:00
Allan Odgaard
688d3d4a9c Update testing system for parse framework 2013-07-26 13:53:57 +02:00
Allan Odgaard
29ff131f26 Don’t assert that only main thread can launch a process
When we run our tests then we are likely not on the main thread when we indirectly test this API.
2013-07-26 13:53:57 +02:00
Allan Odgaard
6f264a2520 Fix issue with reference types used in assertions 2013-07-26 13:53:57 +02:00
Allan Odgaard
ce395fa46a Make bundle item queries thread safe
Note though that mutating the bundle item index is not allowed if other threads are querying it.
2013-07-26 13:53:57 +02:00
Jasmin Lapalme
b9a06b3e0a Support UTF-16/32 and user fallback encoding for folder search
The fallback encoding is taken from .tm_properties (attr.unknown-encoding).
2013-07-26 13:53:57 +02:00
Allan Odgaard
9db42905bf Also use Projects → Initial Location for ⌘T / ⇧⌘F
This settings is the fallback setting for when there is neither a file browser or project folder set for an untitled document.
2013-07-25 14:16:47 +02:00
Allan Odgaard
d5d01542f7 Support copying test::jail_t 2013-07-25 13:54:25 +02:00
Allan Odgaard
6a4c0ff379 Update testing system for editor framework 2013-07-25 11:52:07 +02:00
Jacob Carlborg
7c6d5680af Add source list style setting for the file browser
When this setting is enabled it will render the file browser with the source list style, that is, the same style as the sidebar in Finder.

To enable run: defaults write com.macromates.TextMate.preview fileBrowserStyle SourceList
2013-07-25 11:23:43 +02:00
Allan Odgaard
d17fb1ad7c Account for svn returning relative paths
Starting with subversion 1.8 we get back relative paths from ‘svn status’ so we need to prepend the working directory path.

I also made a few minor stylistic changes while touching the relevant function.
2013-07-24 15:56:19 +02:00
Allan Odgaard
974d027f23 Include key event in potential crash reports 2013-07-24 15:56:19 +02:00
Allan Odgaard
1988b6ba3d Checkin release notes 2013-07-23 23:44:34 +02:00
Allan Odgaard
70411fa11a Show a tool tip when searching wraps around
Closes #1049, although the visual feedback could be improved (see issue).
2013-07-23 22:50:29 +02:00
Allan Odgaard
06f349507a Add a “did wrap” boolean to the OakFindProtocol API
This informs the “server” that searching wrapped around to find the match.
2013-07-23 22:45:52 +02:00
Allan Odgaard
d40faab873 Improve ng::find semantics
When no matches are found then we search the selected range for a match and use that.

Also add a “did wrap” out parameter to the API.
2013-07-23 21:15:35 +02:00
Allan Odgaard
a109347305 Toggling “Ignore Case” can now be done with ⌥⌘C 2013-07-23 15:51:59 +02:00
David Howden
274f73b7de Fix file browser layout issue
Shrinking the file browser width so that the folder drop-down
text is compressed would cause the layout to break if the width
was then increased.
2013-07-23 21:36:04 +10:00