Commit Graph

2143 Commits

Author SHA1 Message Date
Allan Odgaard
72adfe9115 Change ruby syntax: [ foo ].shelljoin → foo.shellescape v2.0-alpha.9499 2013-12-05 12:14:13 +07:00
Adam Strzelecki
2a6b37c1a3 Remember window zoom state and regular window frame
This fixed problem when closing TM2 with zoomed window, then unzooming window
after restart caused invalid window placement.
2013-12-03 09:50:39 +07:00
Allan Odgaard
f880f3df63 Add credits email hash for rdwampler 2013-12-01 14:59:09 +07:00
Allan Odgaard
9a017f97ff Use GitHub’s (preliminary) API for uploading releases 2013-12-01 14:56:48 +07:00
Allan Odgaard
bc7cbffb0c Add -t/--tag option to bin/upload
Presently unused but mandatory.
2013-12-01 14:49:25 +07:00
Allan Odgaard
d2935f976b Add upload (ninja) target 2013-12-01 14:48:27 +07:00
Allan Odgaard
f80794e3b0 Update shebang to explicitly call ruby 1.8 2013-12-01 14:46:43 +07:00
Allan Odgaard
434917b1e9 Use custom script to simulate “codesign --deep”
The problem is that with a bad internet connection there is a very high probability that “codesign --deep” will fail due to having to contact the timestamp server for each embedded executable object.

Long-term we probably want to sign the sub-targets as they are produced and/or link the entire thing together so that there is only a single sign target (plus embedded plug-ins).
2013-12-01 14:35:09 +07:00
Allan Odgaard
b568f2e788 Handle dropping CR delimited text
Also filter malformed UTF-8 sequences from dropped text.
v2.0-alpha.9497
2013-11-28 17:07:55 +07:00
Allan Odgaard
3c99a69398 Only enable “file” services for file browser context menu
The services support in the file browser was mainly added to allow Quicksilver to grab the selection, I do not recall if this is why the selection was (also) made available as a regular string (in addition to the “file names pasteboard type”).
2013-11-28 13:48:03 +07:00
Ronald Wampler
e5841fe34f Add query component to scm URL
Previously when constructing a scm URL from a path, if scm was not enabled
we returned a file URL. This could result in some unexpected behavior.
For instance, when a directory was selected in the file browser,
activating "SCM Status" would just open the untracked directory.
This patch, insteads, adds a query to the scm URL that can be parsed to
determine how to handle the scm status request later on.
2013-11-28 13:48:03 +07:00
Allan Odgaard
888ccbed16 Remove use of NSPointToCGPoint
This is not required when building in 64 bit mode or when defining NS_BUILD_32_LIKE_64.
2013-11-18 22:43:50 +07:00
Charlie Park
deba175fa5 Updates link to Homebrew, to a functioning link. 2013-11-18 04:11:58 -08:00
Boris Dušek
22a5dc1413 Support getting AXVisibleCharacterRange accessibility attribute 2013-11-15 18:14:03 +07:00
Boris Dušek
c7fbcf06ed Fix accessibility visual bounds ending at line boundary
Accessibility visual bounds for a range of a single softline should always
be also visually restricted to the softline. This is in order to be consistent
with implementation in Apple's apps (e.g. TextEdit).
2013-11-15 17:58:28 +07:00
Boris Dušek
9f68cb416c Use softlines instead of hardlines for accessibility
Fixes #1149.

VoiceOver expects AXLineForIndex and AXRangeForLine to be consistent with
the movement by line using arrow up/down. That means it expects "line"
to mean softline.

VoiceOver also distinguishes commands to move by:
* paragraph (hardline): VO-Shift-PgUp/PgDown
* line (softline): VO-up/down

These are available when interacting with the text area (VO-Shift-down).

This commit therefore fixes the AXLineForIndex and AXRangeForLine
to make "line" mean "softline" instead of "hardline" as was the case
until now.
2013-11-15 17:58:18 +07:00
Boris Dušek
e0298cf29c Provide conversions between softlines and buffer positions 2013-11-15 17:58:11 +07:00
Boris Dušek
b8cad485d9 Track softline count in layout 2013-11-15 17:04:50 +07:00
Boris Dušek
5dcca0996c Support text links with VoiceOver
Now links in text (e.g. links to RFCs after installing the Hyperlink Helper bundle)
are announced as such with VoiceOver and it is possible to search for them with
VO-Cmd-L.

TODO:

* launching links with VO-Space is not supported yet, but Enter (Fn-Return)
  does the same thing and is even more reliable.
* link URL is not supported, so it is not possible to learn the URL
  with VO-Shift-U.
2013-11-15 16:09:02 +07:00
Allan Odgaard
6a0ab432cb Show warning if undo will delete non-empty document
Closes #1197
2013-11-15 13:53:04 +07:00
Boris Dušek
98590586bd Embryo of developer documentation :-)
This is a document with information I found most useful as a
new contributor to TextMate - basic stuff a new contributor is likely
to get in contact with.

It's of course incomplete, sparse, can be not well worded and even contain
mistakes. But someone had to make the first shot :-)
2013-11-12 19:30:26 +01:00
Allan Odgaard
a2b44714a6 Treat various archive types as binary 2013-11-09 19:27:24 +07:00
Allan Odgaard
f515d92bb4 Rescan favorites folder when re-opening favorites chooser
Previously we only scanned the folder when creating the favorites chooser singleton which meant items added or removed after the chooser had been used, were not reflected before a relaunch.

Fixes #1182
2013-11-09 19:27:24 +07:00
Allan Odgaard
f2d5d0c143 Allow home/end in filter lists
This goes to the first/last item and can be reached with fn-←/→ on laptop keyboards.
2013-11-08 00:44:25 +01:00
Allan Odgaard
d843225d81 Lines increasing and decreasing indent no longer go below zero
Normally a line matched by both patterns will be decreased by one unit compared to the non-ignored lines immediately above and below. If however the line above was not indented, the line would in theory be decreased to -1 and thus just go back to zero indent for the line following it.
2013-11-08 00:38:53 +01:00
Allan Odgaard
8f90f8f602 Defensive programming
Seeing a common crash on quit which might be due to drawRect: being called when the OakTextView is in a partially destroyed state.
2013-11-04 14:09:27 +01:00
Allan Odgaard
30802bf4c7 Guard against fileSystemRepresentation returning nil 2013-11-04 14:00:55 +01:00
Allan Odgaard
1de5d90475 Set hugging priority for horizontal dividers
In the HTML output window’s status bar, the divider was taking up too much space (on 10.9).
2013-11-04 01:12:04 +01:00
Allan Odgaard
29a7dac562 Checkin release notes v2.0-alpha.9495 2013-11-03 20:42:58 +01:00
Allan Odgaard
2df3118e34 Do not set window as opaque when gutter background is transparent
Previously only the text view’s background would affect the window’s opaque property, which made it impossible to have a solid text view background with a transparent gutter.
2013-11-03 20:37:48 +01:00
Allan Odgaard
ff14e818bc Add gutter_styles_t::is_transparent 2013-11-03 20:37:48 +01:00
Allan Odgaard
93e00f42b1 Fix potential missing last line in encoding view
This would happen if last line was not newline terminated.

The fix does not take into consideration that last line might contain non-ASCII, in which case it should be highlighted.
2013-11-03 20:37:48 +01:00
Allan Odgaard
7402a7835b Opt out of responsive scrolling
With responsive scrolling we need to return NO from isOpaque in order to get transparency and we cannot overload the scrollWheel: method (which we use to forward mouse events from the gutter to the text area).

I have also received a few crash reports that might be caused by responsive scrolling and one user has reported “sticky” scroll behavior.

So for now better just disable it, and see if it fixes all these issues.

Fixes #1135
2013-11-03 20:37:48 +01:00
Allan Odgaard
f88c028d97 Only show one warning per missing user when generating credits 2013-11-03 20:37:47 +01:00
Allan Odgaard
78b110dc0e Use /usr/bin/tar instead of gnutar (which is removed on 10.9)
We were using gnutar to avoid the extended header keywords that bsdtar add to the archive (for non-ASCII file names) as those will cause older versions of gnutar (like the one included with 10.8 and earlier) to give warnings/errors when extracting the archive.

Issue #1180
2013-11-03 20:37:47 +01:00
Allan Odgaard
c53b0cf42d Full paths on search clipboard are made relative to file chooser base 2013-11-03 20:37:34 +01:00
Allan Odgaard
c342af1485 Update dialog plug-in 2013-11-03 20:36:35 +01:00
Allan Odgaard
98343be4da Checkin release notes 2013-10-31 19:03:42 +01:00
Allan Odgaard
0d17cc731f Handle CRLF delimited clipboard data 2013-10-31 18:32:16 +01:00
Allan Odgaard
bc4650f2b0 Move line ending support to text framework 2013-10-31 18:32:16 +01:00
Allan Odgaard
03c91f5ab7 Add assertion 2013-10-31 17:27:15 +01:00
Allan Odgaard
1d0428383f Parse theme colors using 8-bit notation (#RGB)
This is to improve interoperability, as some themes (not produced by TextMate 1.x’s theme editor) use this shorter notation.
2013-10-31 17:27:15 +01:00
Allan Odgaard
798961da6b Handle themes with invalid foreground/background color
Fixes #1179
2013-10-31 17:27:14 +01:00
Allan Odgaard
3683af25a9 Allow using globs in Go to File
Globs are identified by containing at least one asterisk.
2013-10-31 17:27:14 +01:00
Allan Odgaard
a8d494ecdd Remove support for extension filtering (Go to File)
This mode probably did more harm than good — instead we’ll introduce a glob match mode activated by using an asterisk in the filter string, which will then be able to achieve the same.
2013-10-31 17:27:14 +01:00
Allan Odgaard
12288b72ff Re-arrange code 2013-10-31 17:27:14 +01:00
Michael Sheets
882597f9ab Remove high-level UTIs from Quick Look generator
This should allow Quick Look generators to function when they target a more specific UTI. Discussed in #1141 and #1168.
2013-10-31 03:48:58 -05:00
Allan Odgaard
908ca3f5ab Allow zooming icon animation to be disabled
To disable, run the following in a terminal: defaults write com.macromates.TextMate.preview fileBrowserOpenAnimationDisabled -bool YES

Closes #109
2013-10-30 21:50:07 +01:00
Allan Odgaard
e16bacb6f9 Loosen rules about tab trigger boundaries
Previously the character before the potential tab trigger had to be of a different character class. This is now only required when the first character of the tab trigger is a word character.
2013-10-30 21:35:08 +01:00
Allan Odgaard
7b0e92376c Add “wordCharacters” as a scoped setting
Set this to a string of which characters should be added to the set of word characters.
2013-10-30 21:16:20 +01:00