Commit Graph

2086 Commits

Author SHA1 Message Date
Allan Odgaard
0ae129608b Checkin release notes v2.0-alpha.9491 2013-10-27 20:14:23 +01:00
Allan Odgaard
734f24552d Update symbol chooser to use OakChooser
Fixes #1160
2013-10-27 20:07:48 +01:00
Allan Odgaard
323577a013 Use window positioning code from OakChooser 2013-10-27 20:04:48 +01:00
Allan Odgaard
100423a8ee Add relative window positioning to OakChooser 2013-10-27 19:55:31 +01:00
Allan Odgaard
e9d60ce7b7 Drop non-singleton support for the file chooser
The main problem was restoring the data source in showWindow: since that would lose state such as selected item.
2013-10-27 19:34:00 +01:00
Allan Odgaard
25307478a1 Improve default implementation of objectValueForTableColumn: 2013-10-27 18:13:28 +01:00
Allan Odgaard
e95ba95ea5 Remove ellipsis from Go to File window title 2013-10-27 16:58:08 +01:00
Allan Odgaard
a18d8bd3e7 Don’t set foreground color for (file) chooser items
Initially not-matched characters were made light gray and we also had to explicitly set the color to white when the item was highlighted.

We no longer use color distinction for matched/non-matched characters, and rendering the text as highlighted is handled by the table view (NSCell setup).
2013-10-27 11:55:59 +01:00
Allan Odgaard
f9349f6981 Enable multi-selection in file chooser
This was accidentally lost in the refactoring.
2013-10-27 11:45:55 +01:00
Allan Odgaard
a9a1c38006 Sign embedded bundles
This is required when signing on OS X 10.9.

Although the option is not documented for the version of codesign included with 10.8, using it does not result in an error.

Closes #1158
2013-10-27 11:37:27 +01:00
Allan Odgaard
a05de9fed5 More file chooser refactoring (introduce reusable superclass) 2013-10-27 11:37:27 +01:00
Allan Odgaard
f943a6367a Remove disableHighlight property from NSCell subclass
The desired rendering can be achieved without adding code to NSCell
2013-10-27 11:27:47 +01:00
Allan Odgaard
40d9b239b4 Refactor file chooser (isolate reusable parts) 2013-10-27 11:27:31 +01:00
Allan Odgaard
4c40d6b6b9 Allow opening files by single-clicking text (rather than icon)
This is enabled via: defaults write com.macromates.TextMate.preview fileBrowserSingleClickToOpen -bool true

Closes #187
2013-10-26 12:57:38 +02:00
Allan Odgaard
44cdbc57c6 Move “click to open” logic to cell
This will make it easier to change the logic, since 3 different parts of the file browser depend on it: accepting first responder, selecting items, and single-clicking items.
2013-10-25 23:14:01 +02:00
Allan Odgaard
1d37649c10 Remove instance variables from interface 2013-10-24 21:10:20 +02:00
Shane Becker
b1fe3b7561 Added a possessive apostrophe to mate -h
TextMate's, not TextMates.
2013-10-24 16:04:35 +02:00
Allan Odgaard
88c4675c94 Checkin release notes 2013-10-24 16:04:34 +02:00
Allan Odgaard
8c16b160e0 Improve “replace input” command output for column selections
The output will be inserted corresponding to the subsets selected on each line.

If the output has less lines than the column selection then the additional selected lines are cleared.

If the output has more lines than the column selection then the additional output lines are dropped.
2013-10-20 22:29:53 +02:00
Allan Odgaard
3064fb82b4 Change text::range_t → ng::range_t 2013-10-20 19:10:02 +02:00
Allan Odgaard
94230858f8 Abort if unable to reload document
This should be handled better, but previously we would crash due to filling the stack, so better to just immediately abort when we detect the problem, so that we get a better crash report and can see how widespread the issue is.
2013-10-19 23:34:41 +02:00
Allan Odgaard
1c6fd700d0 Catch potential exceptions from loading Cap’n Proto data files
Might fix #1134
2013-10-19 23:24:53 +02:00
Allan Odgaard
0b0d0ef550 Disable wrapping for NSTextView
Unfortunately this doesn’t cause the container to get the proper width, but in most cases this is probably preferred over having the content wrap.
2013-10-19 21:41:03 +02:00
Allan Odgaard
20583653f9 Test if io::spawn fails 2013-10-19 21:21:33 +02:00
Allan Odgaard
2d1fbc1ff5 Add Go → Go to Tab → Last Tab (⌘0)
Closes #1150
2013-10-18 21:14:07 +02:00
Allan Odgaard
c5449af10f Revert "Added spaces as an invisible"
Fixes #1145

This reverts commit 8cea97aeca.

Conflicts:
	Frameworks/layout/src/paragraph.cc
2013-10-18 20:31:56 +02:00
Allan Odgaard
a64c590a60 Use standard icon for .log files 2013-10-10 16:45:26 +02:00
Allan Odgaard
8d247310a2 Checkin release notes 2013-10-10 16:44:37 +02:00
Ryan Goulden
3548028a65 Always recommend plain text when opening files. 2013-10-10 02:39:44 -04:00
Ryan Goulden
52e6b326c4 Allow sorting bundles by installed 2013-10-10 02:17:19 -04:00
Steven Clukey
bbe1ca357b Add “invisiblesMap” option to the .tm_properties file
This setting allows changing which invisibles are shown and what glyph
is used for them.

Invisibles are '\t', '\n', and ' ', to turn one off, add ~[\t \n] to
the settings string. To set the glyph used for the invisible, add [\t
\n][glyph_to_use].
2013-10-08 23:06:29 +02:00
Steven Clukey
49c949d65e Add layout_t::set_character_mapping
This allow configuring which characters should be used to render tabs, spaces, and newlines (when “show invisibles” is enabled).
2013-10-08 23:03:40 +02:00
Steven Clukey
8cea97aeca Added spaces as an invisible 2013-10-08 22:00:11 +02:00
Allan Odgaard
9474a35f58 Remove QuickLook support for HTML, iCal, csv, and tsv files
All these types are already handled on a default system.

Related to issue #1141
2013-10-08 21:59:56 +02:00
Allan Odgaard
9db7613794 Use file::reader_t for QuickLook preview
This ensures the file gets transcoded into UTF-8.

Closes #1141
2013-10-08 21:59:56 +02:00
Allan Odgaard
9b57695a5c Use file::reader_t for folder search 2013-10-08 21:59:56 +02:00
Allan Odgaard
0e0abfdafe Add UTF-8 reader
This will transcode a file to UTF-8 with a best effort to use the correct encoding, looking at byte order mark, extended attributes, .tm_properties, and falling back on frequency analysis.
2013-10-08 21:59:55 +02:00
Allan Odgaard
0a47054e14 Fix potential exception in encoding selector sheet
Some valid UTF-8 byte sequences are not valid code points, so our “simple” validation is no guarantee that creating an NSString from the data will succeed.
2013-10-08 21:59:55 +02:00
Allan Odgaard
17a861fd37 Fix potential infinite loop in the encoding selector sheet 2013-10-08 21:59:55 +02:00
Allan Odgaard
dff40138f1 Add proper sorting of numeric plist keys 2013-10-08 21:59:55 +02:00
Allan Odgaard
9a6451da2c Create generated headers in configure script
Fixes #1136
2013-10-08 21:59:55 +02:00
Allan Odgaard
adb2741689 Remove non-UTF-8 from clipboard data
It should be safe to assume that clipboard data is valid UTF-8, but I’m seeing crashes related to creating a CFString (from buffer content) after a paste operation, so the assumption might not be valid.
2013-10-08 21:59:55 +02:00
Allan Odgaard
b45e52ae71 Remove non-UTF-8 from command output
Previously we would create a hex dump from the output.
2013-10-08 21:59:55 +02:00
Allan Odgaard
4d37803f5c Remove non-UTF-8 from completion command output
Previously an entire line containing non-UTF-8 would be discarded, now we only remove the problematic bytes.
2013-10-08 21:59:54 +02:00
Allan Odgaard
2fa5d7ddb2 Add UTF-8 sanitization function
This can be used to remove malformed multibyte sequences.
2013-10-08 21:59:54 +02:00
Allan Odgaard
51a7424c90 Add additional crash report info 2013-10-08 21:59:54 +02:00
Allan Odgaard
81006920c2 Simplify binding setup for encoding pop-up button 2013-10-06 23:09:12 +02:00
Allan Odgaard
5b27a39bb8 Fix compatibility with 10.7 2013-10-06 23:09:12 +02:00
Allan Odgaard
1baa953955 Set the encoding window controller as window delegate
No reason for this other than it seems right.
2013-10-06 23:09:11 +02:00
Allan Odgaard
72d6851eb0 Avoid leaking the encoding chooser sheet 2013-10-06 23:09:11 +02:00