Commit Graph

3400 Commits

Author SHA1 Message Date
Allan Odgaard
9dc71d5687 Checkin release notes v2.0-beta.7.2 2015-06-13 18:09:29 +02:00
Allan Odgaard
4a7faba2c0 Do not show “TextMate is Outdated!” dialog for licensed copies 2015-06-12 14:18:53 +02:00
Allan Odgaard
e5404fb1ea Expose the registration window controller
Also make the registration window show up at the modal window layer. It should (probably) be using a modal session, though not entirely sure.
2015-06-12 14:18:19 +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
b7a1011f96 Update install instructions 2015-05-09 21:24:38 +02:00
Joachim Mårtensson
71960834ba Setup Google's sparsehash library for use 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
50250bb402 Escape tilde in default glob pattern
In retrospect it was perhaps a mistake to use tilde as a special character in globs.
2015-05-06 21:20:21 +02:00
Allan Odgaard
0f4397769d Include the cstdlib header
This is to ensure we get the integer prototype for std::abs
2015-05-06 21:19:07 +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
Alexander Böhn / FI$H2k
23509380cb Fixed fatal error in Applications/indent/indent.cc
The static `std::map` instance (named just `map`, on line 79) had its initializer template params in the wrong order, which kept it from compiling. Swapping them as per this PR lets `indent` build and run with no issues.
2015-04-30 15:15:56 +02:00
Jason Gavris
f9e8192d00 Fix t_bump_date timezone 2015-04-30 15:15:56 +02:00
Waynn Lue
9d517741ef Moving a comma that seems misplaced 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
8c3177113f Add missing newline to error output v2.0-beta.7.1 2015-03-26 12:19:19 +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
Allan Odgaard
08db1b53a9 Checkin release notes v2.0-beta.7 2015-03-25 13:03:52 +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
eca7d839f3 Update MASPreferences submodule: Improve 10.10 compatibility 2015-03-23 17:03:36 +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