Commit Graph

2355 Commits

Author SHA1 Message Date
Allan Odgaard
ed29cf9374 Ensure a capture begin/end rule does not leak its scope
Previously if a capture contained a begin/end rule with an unsatisfied end match then its scope would be applied beyond the end of the capture.
2014-09-16 20:38:09 +02:00
Allan Odgaard
651138d660 Update debug output 2014-09-16 14:54:11 +02:00
Allan Odgaard
b265927501 Perform cache invalidation for value_for_setting cache 2014-09-16 14:22:54 +02:00
Allan Odgaard
1d3ccb157a Use a std::string instead of scope_t as cache key
Since we do a lot of lookups the faster operator< of std::string improves performance slightly.
2014-09-16 14:13:06 +02:00
Allan Odgaard
de6724aad5 Minor scope_t implementation improvements
We let std::string do comparisons and we shortcut the equivalence test for scope_t when the node pointers are identical.
2014-09-16 13:57:52 +02:00
Allan Odgaard
d9dfeff56b Introduce a cache for value_for_setting
Currently no cache invalidation is done.
2014-09-16 13:13:12 +02:00
Allan Odgaard
b6c77d1960 Change behavior and implementation of to_s overload for scopes
For a scope context with identical left/right scopes we now return the scope without “decoration” and when the left/right scopes differ, we return them separated by the unit separator character.

The change is motivated by the need to use the result of to_s as a cache key where speed is important.
2014-09-16 12:54:48 +02:00
Allan Odgaard
356999392d Remove crash report info gathering from buffer type
This was affecting performance when performing actions that go through the entire buffer. Also, none of the functions are involved in any crash reports.
2014-09-15 20:41:51 +02:00
Allan Odgaard
8a87ee16e2 Only allow a single history window per clipboard type 2014-09-15 17:41:54 +02:00
Allan Odgaard
3dcd9ba89b Make OakPasteboard’s name property public 2014-09-15 17:37:20 +02:00
Allan Odgaard
ee3f90366d Remember Filter Through Command output choice in user defaults 2014-09-15 17:08:22 +02:00
Allan Odgaard
8224994f5d Convert dragged indexes to items when starting a drag operation
The indexes are not always valid when the drag ends because rows can have been expanded or (when dragging to another file browser) removed.
2014-09-15 12:42:02 +02:00
Allan Odgaard
ab83cc6e50 Strip diacritics and combining marks when asciifying
Previously we would transliterate æ → ae and å → a (via iconv) but something like é became 'e.

Related to issue textmate/latex.tmbundle#87.
2014-09-15 11:02:25 +02:00
Allan Odgaard
279fdbbd3f Add new folder search options to action/options menu 2014-09-14 19:12:19 +02:00
Allan Odgaard
2474af5d16 Skip searching binary files
Binary files are identified by containing a null byte (after applying encoding heuristics and decoding potential UTF-16 etc.).
2014-09-14 18:28:39 +02:00
Allan Odgaard
9a3ab4c46f Add option to search linked files (rather than folders)
Also reworked API slightly to make things more explicit.
2014-09-14 18:17:00 +02:00
Allan Odgaard
2d3de8513c Using ⌘G after a folder search no longer visits removed documents 2014-09-14 17:27:00 +02:00
Allan Odgaard
0ed6ae555c Extend folder search glob when removing result and holding option
This is a quick way to exclude the file from future searches.
2014-09-14 17:14:05 +02:00
Allan Odgaard
e78a9ced21 Make glob string property settable 2014-09-14 17:11:22 +02:00
Allan Odgaard
7920c930c3 Use Objective-C boxing instead of stringWithUTF8String: 2014-09-13 17:09:22 +02:00
Allan Odgaard
c5e1303a2a Rename stdinFd variable to inputFd
This is just to make it consistent with our outputFd and errorFd variable names.
2014-09-13 16:19:07 +02:00
Allan Odgaard
01543db36f Show malformed match result “warning” with correct font size 2014-09-13 15:53:52 +02:00
Allan Odgaard
dd0afb381f Set regexp error popover behavior to NSPopoverBehaviorTransient
This allows using escape to close the popover.
2014-09-12 16:17:35 +02:00
Allan Odgaard
5d4fe11e70 Speedup tool-tip fadeout except when closing due to mouse moved 2014-09-10 15:28:19 +02:00
Allan Odgaard
73b21bd836 Move WebView related print support to OakHTMLOutputView 2014-09-10 14:02:08 +02:00
Allan Odgaard
707da020bb Ensure our HTML output view is first responder after load
When redirecting to a PDF file the PDFView (inside the WebView) is not made first responder (on 10.9, it might have worked on 10.8).
2014-09-10 13:46:39 +02:00
Allan Odgaard
a4f47a7bfc Use Core Animation for the open document animation (zooming icon) 2014-09-10 13:34:11 +02:00
Allan Odgaard
72276ff644 Skip menu item separators with items from multiple bundles
The only example of this that I am aware of is ⌘Y when there is no version control system used for the current project: Here we get a menu with init/checkout/help items from some of the SCM bundles and it looked bad when TextMate would use separators for these items.
2014-09-08 20:37:20 +02:00
Allan Odgaard
d7d2b5047a Improve ordering of items in bundle item chooser
Previously we would alphabetize (non-setting) items when filtering on other properties than the title, now we order them based on their scope precedence.

So e.g. filtering on key equivalent will now show the item that will actually fire as the first one.
2014-09-08 20:18:13 +02:00
Allan Odgaard
9d39e80044 Hide OakToolTip interface in implementation file
This isn’t actually a public interface.
2014-09-08 14:47:19 +02:00
Allan Odgaard
f082f8fe47 Order out any old tool tip that might exist when showing a new 2014-09-08 14:47:19 +02:00
Allan Odgaard
db2c798292 Use Core Animation to fade out tool tips 2014-09-08 14:47:19 +02:00
Allan Odgaard
ac151e7d4c Allow editing .tm_properties files from bundle item chooser 2014-09-07 10:31:16 +02:00
Allan Odgaard
a925801cb6 Include items from .tm_properties in bundle item chooser 2014-09-07 10:31:16 +02:00
Allan Odgaard
89400822d3 Add settings_info_for_path to get path/section for .tm_properties 2014-09-07 10:31:16 +02:00
Allan Odgaard
57da86ba5c Use higher order function to collect settings 2014-09-07 10:31:16 +02:00
Allan Odgaard
06484ae92a Remember which path a property section is extracted from 2014-09-07 10:31:16 +02:00
Allan Odgaard
de3f867c9e Use std::mutex and std::lock_guard instead of pthread_mutex_t
Also move the mutex out so that other functions can lock it.
2014-09-07 10:31:16 +02:00
Allan Odgaard
b4956ac4fa Make ‘untitledSavePath’ a public (readonly) property 2014-09-06 14:12:31 +02:00
Allan Odgaard
1e057ef38f Sort items based on filter string when searching all scopes
When only searching current scope we want to list the settings in the order of precedence but that does not make sense when searching all scopes.
2014-09-06 10:47:52 +02:00
Allan Odgaard
b11a1d05a4 Do not overstrike settings items when searching all scopes 2014-09-06 10:39:51 +02:00
Allan Odgaard
0045daa153 Add overstrike style to eclipsed settings in bundle item chooser 2014-09-04 22:45:06 +02:00
Allan Odgaard
26c4b88959 Keep settings items in bundle item chooser sorted by scope rank
Previously when we entered a filter string the sorting would be based on how good a match the filter string was.
2014-09-04 21:59:49 +02:00
Allan Odgaard
c9a13a82c5 Fix deprecation warnings 2014-09-03 17:02:25 +02:00
Allan Odgaard
6bdad1733e Move handling of invisible character mapping to ng::context_t 2014-09-03 16:06:44 +02:00
Allan Odgaard
06b6802d05 Do not export ng::paragraph_t and supporting to_s function 2014-09-03 16:05:14 +02:00
Allan Odgaard
f0e5efd5ae Remove unnecessary typecasts 2014-09-03 15:21:56 +02:00
Allan Odgaard
751a564fe2 Escape can now be used to clear a recorded key equivalent
If there is no recorded key equivalent then the key is passed to super.
2014-09-02 20:44:17 +02:00
Allan Odgaard
74e9448738 Use a scope bar view for the different bundle item types 2014-09-02 20:44:17 +02:00
Allan Odgaard
918406d52d Update bundle item chooser UI 2014-09-02 20:44:17 +02:00