Commit Graph

2758 Commits

Author SHA1 Message Date
Allan Odgaard
9d1d1a1a5a Link directly with static versions of boost libraries
This is currently using absolute paths since it’s a quick fix.
2015-06-13 19:16:10 +02:00
Allan Odgaard
980b0b9796 Double-tapping shift will now “deselect last” 2015-06-12 14:18:12 +02:00
Allan Odgaard
d17f509536 Implement a “deselect last” action method
If there are multiple (discontinuous) selections then this action will drop the last one.

If there are multiple carets (with no selections) then this action will drop all but the first caret.
2015-06-12 14:17:06 +02:00
Allan Odgaard
ec37b09faf Use find clipboard when no string is present in macro
This makes it possible to combine the “Use Selection for Find / Replace” with a non-simple find action (e.g. “Replace All”).

If any find options are set (case sensitive, regular expression, etc.) then these will trump the options set for the entry on the find clipboard.
2015-06-12 14:16:50 +02:00
Allan Odgaard
f4089e76fd Using Check Spelling at the end of a word now checks that word
This supports the workflow of typing a misspelled word and then using Check Spelling (⌘;) to fix it.
2015-06-12 14:16:12 +02:00
Allan Odgaard
b826f34584 Disabling anti-alias will now also apply to the line numbers 2015-06-12 14:14:39 +02:00
Allan Odgaard
9a7203cae1 Eliminate redundant anti-alias user defaults constant 2015-06-12 14:12:47 +02:00
Allan Odgaard
4f2f799c6b Convert filter string to decomposed unicode
Since we are doing a literal (byte-by-byte) subset match we need to have the filter string use the same unicode normalization form as the items it is matched against.

For favorites and the file chooser, the items are file system names, which default to the decomposed form.

Ideally the filtering algorithm would know about diacritics, but in practice the current solution should work for most actual scenarios, and is much simpler (thus faster).
2015-06-12 14:10:17 +02:00
Allan Odgaard
4827e354f0 Don’t call non-virtual member functions for nullptr 2015-05-09 21:40:29 +02:00
Joachim Mårtensson
70893f4583 Use dense_hash_map for style cache 2015-05-09 21:24:38 +02:00
Joachim Mårtensson
f7dd4c0ace Add std::hash() implementation to scope_t 2015-05-09 21:21:01 +02:00
Allan Odgaard
dbd33948f3 For unknown key binding actions we append this info to its name 2015-04-30 15:15:58 +02:00
Allan Odgaard
74ef6697ba Our doCommandBySelector: override should beep for unknown actions 2015-04-30 15:15:58 +02:00
Allan Odgaard
0edcddccfa Do proper escaping when constructing a glob from file path 2015-04-30 15:15:57 +02:00
Allan Odgaard
9ceb07e54c Add API to escape a string for use in a glob pattern 2015-04-30 15:15:57 +02:00
Allan Odgaard
c6c388e088 Add explicit link dependency 2015-04-30 15:15:57 +02:00
Ronald Wampler
d7121673ba Declare properties needsNewWebView and webView @dynamic
This suppress a warning with the latest version of clang shipped with Xcode 6.3.
2015-04-30 15:15:57 +02:00
Ronald Wampler
4aff7098a5 Use std::abs instead of abs()
This suppresses a couple of warnings with the latest version of clang shipped with Xcode 6.3.
2015-04-30 15:15:56 +02:00
Ronald Wampler
172ce9d428 Replace thread_local with boost equivalent
The new version of clang (Apple LLVM version 6.1.0) as shipped with Xcode 6.3, disabled TLS. According to http://clang.llvm.org/cxx_status.html, in order to support `thread_local`, the C++ runtime library from g++-4.8 or later is needed.

For now, we can use the boost `thread_specific_ptr`. This is probably a reasonable solution since 1) it should be portable with old and future versions of (Apple's) clang and 2) requires no additional dependencies.
2015-04-30 15:15:56 +02:00
Jason Gavris
f9e8192d00 Fix t_bump_date timezone 2015-04-30 15:15:56 +02:00
Yuu Q
5a1754bc01 Add missing shadow to find/replace history pop-up list
The NSComboBox, whose pop-up list has shadow, and so it will be nice for this similar control.
2015-03-28 09:45:41 +07:00
Allan Odgaard
9c69badaf6 Save with Xcode 6.2 (6C131e) 2015-03-28 09:45:40 +07:00
Allan Odgaard
b0814dfbd9 Suppress warning from the atos Xcode tool
Not sure why we get this warning since we do go via xcrun.
2015-03-26 12:15:18 +07:00
Allan Odgaard
3c49b4fd69 fixup! Support discontinuous selections in command input API
Fixes textmate/bugs#12
2015-03-26 12:13:36 +07:00
Koen Punt
6aa81a0eb9 Fix typo, delsyedPlaySound => delayedPlaySound 2015-03-25 12:38:39 +07:00
Allan Odgaard
65480a60bf Find dates surrounded by underscores in path names 2015-03-25 12:36:30 +07:00
Allan Odgaard
245450ae9f Add test for updating date in file path string 2015-03-25 12:25:12 +07:00
Allan Odgaard
6c07075cc0 Improve behavior of command-clicking
When command-clicking an existing selection we remove the selection and insert a single caret.

When double/triple-clicking we remove existing carets/selections in the range that gets selected.
2015-03-24 18:26:01 +07:00
Allan Odgaard
a003d76234 Do not go via /usr/bin/env for bash
For standard commands we want to use the system’s standard interpreter, as that makes it easier to ensure compatibility.
2015-03-24 13:38:43 +07:00
Allan Odgaard
7a7f5a9676 Preserve font scale factor when switching theme 2015-03-24 13:37:18 +07:00
Allan Odgaard
daa32482bf When duplicating a file with a YYYY-MM-DD date we bump the date
This is instead of adding “copy” to the base name.

This is useful when you use a previous (dated) document as template for a new one, e.g. an invoice, meeting minutes, or similar.
2015-03-23 18:01:47 +07:00
Allan Odgaard
31464f39fd Send performCloseTab: to our delegate instead of next responder
A delegate was introduced (out of necessity) in 6748c28109 but we didn’t use it for everything, leading to inconsistent code.
2015-03-23 11:53:21 +07:00
Allan Odgaard
491ef65e65 fixup! Support discontinuous selections in command input API 2015-03-23 11:28:19 +07:00
Koen Punt
808aaabc44 Add NSOtherMouseUp to OakIsAlternateKeyOrMouseEvent
To allow the alternate behavior (“close other”) when clicking a tab with the middle mouse button.
2015-03-23 11:28:19 +07:00
Koen Punt
436068cbb7 Allow closing tabs on “other” (middle) mouse button 2015-03-23 11:28:19 +07:00
Allan Odgaard
8829637b6c Workaround for control-click not sent to superview
We only add this workaround to tab item views and rollover buttons, but the issue applies to all subviews that do not have their own context menu, but placed in a superview which does.

Closes textmate/bugs#11
2015-03-18 11:01:29 +07:00
Allan Odgaard
6e5169a9af When command input is discontinuous then split result on LF
Input range i will get the i’th line from the output (module n, with n being total number of output lines).
2015-03-08 16:51:55 +07:00
Allan Odgaard
100c13f3b5 Let command input be LF separated selections when discontinues
This is only when the command input requested is “selection”. In theory it probably should also do this when input is character, word, or line, but in this case, we can end up with overlapping input ranges.
2015-03-08 16:49:19 +07:00
Allan Odgaard
30be46a166 Support discontinuous selections in command input API 2015-03-08 14:21:59 +07:00
Allan Odgaard
0e309b1056 Add “never hide left border” tab bar view property
We set this when the file browser is on the left of the tab bar view.
2015-03-05 16:38:10 +07:00
Allan Odgaard
b80b526c70 Use actual type for OakTabBarView instead of NSView 2015-03-05 16:38:10 +07:00
Allan Odgaard
0c9735c767 Show a heads-up display when changing font scale factor 2015-03-05 16:38:10 +07:00
Allan Odgaard
4a825499d6 Introduce font scale factor property
Previously increasing/decreasing font size would simply change the base font, making it non-trivial to know the current scale factor and/or reset it.
2015-03-05 16:38:10 +07:00
Allan Odgaard
c710ee8b7a Remove unused code 2015-03-05 16:38:09 +07:00
Allan Odgaard
c416262d82 Limit FFMatch / find::match_t boxing and unboxing 2015-03-05 16:38:09 +07:00
Allan Odgaard
8d15a4972d Fix logic to detect Yosemite or later 2015-03-05 16:38:09 +07:00
Allan Odgaard
40879d5683 Replace sizeofA macro with range-based for loop or std::begin/end 2015-03-05 16:38:09 +07:00
Adam Strzelecki
f2d8598b06 Fix dull file browser labels on Yosemite
Using NSTextFieldCell instead default NSCell together with
NSTableViewSelectionHighlightStyleSourceList on Yosemite causes cells get light
gray color, making the whole list dull and unreadable. Workaround that setting
cell's `textColor` to `[NSColor textColor]`.
2015-03-05 16:38:09 +07:00
Adam Strzelecki
6136e1d607 Remove browser header shadow & bold on Yosemite
This applies to tabs above document case.
2015-03-05 16:38:09 +07:00
Adam Strzelecki
0ca21f9c75 Use black text color selected tab on Yosemite
This is more inline with Safar, Xcode & Terminal look on Yosemite.
2015-03-05 16:11:43 +07:00