Commit Graph

227 Commits

Author SHA1 Message Date
Allan Odgaard
a134b213eb Add settings_t::raw_get
This allows getting a variable from the global domain without any variable interpolation (for settings that use $variables or \escapes).

This is required to provide a UI for editing preferences values (here we want to edit the unexpanded value, and the version in the global domain).
2012-08-25 02:06:03 +02:00
Allan Odgaard
32be6b4800 Add kSettingsLineEndingsKey
Presently not used (by the loader/saver).
2012-08-25 00:57:48 +02:00
Allan Odgaard
13026c70ca Add format_string::escape
This produces a string where all format string characters have been properly escaped.
2012-08-25 00:57:48 +02:00
Allan Odgaard
fbfc42be34 Remove unused settings keys
More will follow as we hookup the preferences window to TextMate’s property system.
2012-08-24 16:57:32 +02:00
Allan Odgaard
b1e8efcd01 Preserve various OakTextView settings
All the settings are now taken exclusively from the property files, so no more user defaults. This means users will have to set their theme and font again.
2012-08-24 16:57:32 +02:00
Allan Odgaard
b86cde21f3 Set default font to Menlo and add theme setting
Despite Menlo having been the new system font for fixed width text in the past several OS versions, NSFont’s userFixedPitchFontOfSize: still return Monaco, unless we build with the 10.8 SDK (and no, setting the deployment target to 10.7 does not produce something that actually runs on 10.7, at least not last I checked).

The disadvantage with Monaco as default font is that we lack bold and italic styles (since CoreText doesn’t synthesize these, unlike the legacy text rendering API TextMate 1.x used).
2012-08-24 16:57:32 +02:00
Allan Odgaard
839aa5c1e3 Set default soft tabs settings for ninja and make
See issue #275.
2012-08-24 16:57:32 +02:00
Allan Odgaard
0b3e361e54 Add code to save Global.tmProperties
Instead of storing things in user defaults we will store them in ~/Library/Application Support/TextMate/Global.tmProperties.

This just makes things a lot easier than having to mix NSUserDefaults with our .tm_properties files, especially since changing a setting in the UI should sometimes be global, sometimes be for the current file’s type, and sometimes just for the current document (e.g. spelling language).

These features are already available with the .tm_properties.
2012-08-24 16:57:32 +02:00
Allan Odgaard
3415d775c5 Use symbolic name for FD_CLOEXEC
Unsure why I was using ‘1’ — perhaps the symbolic name was missing in the older SDK.
2012-08-24 16:52:45 +02:00
Allan Odgaard
f5c7301ba7 Use O_CLOEXEC when possible
This avoids having to do a fcntl(fd, F_SETFD, FD_CLOEXEC) to set the “close on exec” flag.
2012-08-24 16:52:42 +02:00
Allan Odgaard
16b3fcecd7 Format string parser: fix infinite loop
This would happen if given an (incomplete) format string like: ‘${1:/’.
2012-08-23 17:15:12 +02:00
Allan Odgaard
3c79f275f1 Use constants for settings keys 2012-08-23 17:15:12 +02:00
David Howden
b8b25a46c8 Extend gutter theming to selection foreground
New theme setting: gutterSelectionForeground
2012-08-23 14:42:11 +02:00
Michael Sheets
925f9fb729 Add scope attributes for Ant, CMake, Maven and Scons projects. 2012-08-23 00:18:40 -05:00
Allan Odgaard
8d4cf3cad0 Checkin release notes 2012-08-23 00:57:07 +02:00
Allan Odgaard
aa06fa8b7b Add encoding options to Chinese localization
This isn’t localized.
2012-08-23 00:44:24 +02:00
Allan Odgaard
031fe94fd0 Fix missing underline for misspelled words
As we are using a CGImage for this, we miss out on the retina version, so this code should be revised.
2012-08-22 21:35:55 +02:00
Gerd Knops
51cb92b527 Added GitHub workflow info to README.md 2012-08-22 21:34:30 +02:00
Gerd Knops
e13f1ec13f Remember Bundle Editor column widths 2012-08-22 21:15:18 +02:00
Gerd Knops
d19e2fa49e BundleEditor: follow truncated names with ellipsis 2012-08-22 21:15:17 +02:00
Allan Odgaard
12a1d86735 Add upload targets for executables
This is to make it easy to push test programs.
2012-08-22 18:24:41 +02:00
Joachim Mårtensson
ab310cbdab Use cf::color_t RGBA constructor when converting color_info_t 2012-08-22 17:06:56 +02:00
Gerd Knops
9d17d74b1b File Browser will now remember it's width
This closes issue #5.
2012-08-22 15:48:34 +02:00
David Howden
f2dd19f2a3 Extend support for theming the gutter
New theme setting: gutterSelectionBackground
2012-08-22 15:10:21 +02:00
Jacob Bandes-Storch
f24462a523 Use URL-based (modern?) NSWorkspace method 2012-08-22 15:01:38 +02:00
Jacob Bandes-Storch
caf77cc40c ⌘+click a file browser icon to show in Finder 2012-08-22 15:01:38 +02:00
Jacob Bandes-Storch
a611fc213d Prevent horizontal scrolling of search results 2012-08-22 15:01:37 +02:00
Jacob Bandes-Storch
b24f2294fb Clean up find results view positioning
The left and right borders are no longer visible, so the results are flush with the edges of the find window.
2012-08-22 14:43:09 +02:00
Paul Wilde
cd84a864d2 Added Retina icons for bottom bar and file browser
As all the icons have been remade some of them should look better on non-retina also.

This closes issue #42.
2012-08-22 14:34:25 +02:00
Allan Odgaard
7b4bf9c893 fixup! Move border drawing to OakDocumentView
Drawing the border did not account for auxiliary views (presently used by incremental search). See issue #240.

It also did not properly layout the views when adding/removing such views, causing the border to disappear after having used incremental search.
2012-08-22 14:34:25 +02:00
Allan Odgaard
d629f6cbe3 Checkin release notes 2012-08-22 14:34:25 +02:00
Allan Odgaard
4e9d9414f1 Add encoding options to save dialogs
A minor caveat is that if there are encoding or newline (folder specific) settings in effect for the chosen path, these trump what’s selected in the save dialog.

If we wish to solve this, the best would be to update the options (shown in the save panel) based on selected folder/filename (and the settings in effect for that).

This closes issue #163.
2012-08-21 23:45:45 +02:00
Allan Odgaard
6fa92db265 fixup! Prune redundant items from SCM data source 2012-08-21 23:45:45 +02:00
Allan Odgaard
566d9b27dc Expose encoding variables for document_t 2012-08-21 23:45:45 +02:00
Dennis Vennink
fc9767b520 Community effort to redesign and retinafy the gutter icons. 2012-08-21 23:45:45 +02:00
Allan Odgaard
d38308f6c8 Move ‘mate’ socket (back) to /tmp
We moved it to TMPDIR so that multiple instances of TextMate could run (for different users) but have since gotten a lot of reports about problems with this location. The short version is that ‘ls’ shows the socket exists (in TMPDIR), but stat’ing it or similar will fail.

To still allow different users to use mate side-by-side we add the user ID to the socket name.

Hopefully this closes issue #183.
2012-08-21 21:54:18 +02:00
Allan Odgaard
0d4185bfeb Don’t remove existing mate on install
The reason for this is that we might be able to overwrite mate even if we do not have write access to the parent directory. This will avoid us having to prompt the user for an admin password (when updating mate).

It should be mentioned though that incase mate is not a regular file, we do need to remove it first, because if e.g. it is a symbolic link, our install would write to where the link points to.
2012-08-21 21:32:40 +02:00
Allan Odgaard
53bcc664b3 Update installed mate if required 2012-08-21 21:23:41 +02:00
Allan Odgaard
69196f58f3 Add missing dependencies to debug targets 2012-08-21 20:24:06 +02:00
Allan Odgaard
fcaa957d4b fixup! Add support for theming the gutter
Theme was no longer initialized by OakTextView, instead we relied on OakDocumentView to provide us with a theme, but if the user had no themes installed, it would never do so, leading to a crash when OTV uses a theme member function to obtain colors.

This closes issue #222.
2012-08-21 20:11:21 +02:00
Allan Odgaard
80bf684510 Don’t disallow snippet expansion in last placeholder
This was (temporarily) disallowed by previous commit. We do however need to allow it in the last placeholder since that is used for chaining snippets. See issue #182.
2012-08-21 19:43:30 +02:00
Allan Odgaard
40822e87e6 Limit recursive snippet expansion
If caret is at the first position of a place holder then we no longer look for tab expansions, should the user press tab.

This address the issue where a placeholder has optional content and the word to the left of this optional content is a tab trigger. Previously deleting the placeholder text and pressing tab would insert a new snippet, which would generally not be expected.

This closes issue #226.
2012-08-21 19:43:10 +02:00
Allan Odgaard
621c821689 Don’t register existing value transformers
It can happen that we register the same value transformer twice, e.g. if we register it in an initialize method (since these are not guaranteed to only be called once).

This isn’t a problem per se, but there is no reason to create the new instance.
2012-08-21 18:21:40 +02:00
Allan Odgaard
a09b58422f Fix releasing of array
Previously we used ‘dealloc’ to release the array, which is wrong.

Since instances of OakStringListTransformer is normally never released this bug wasn’t affecting anything. But since we have a dealloc, it should be correct.
2012-08-21 18:21:40 +02:00
Allan Odgaard
998eec410d View → Toggle Foldings now work for find results
This will expand/collapse the find results.

The benefit here is just having a key to quickly collapse all the results so that we get a list of files (with matches).
2012-08-20 22:57:52 +02:00
Allan Odgaard
d8328e2c4f Drop use of OakSavePanel in Terminal preferences 2012-08-20 22:50:32 +02:00
Allan Odgaard
4606e4bca5 Simplify creating an OakEncodingPopUpButton
We now do the (sort of required) sizeToFit in the initializer. Users can still bypass this by using initWithFrame:pullsDown: instead of init:.
2012-08-20 22:36:12 +02:00
Allan Odgaard
c3bb5857ed Search at most 5 MB in regular expression mode
This is to avoid running out of memory, ideally we would search in chunks, but given that Oniguruma has no direct support for this, such fix is more involved, and it’s likely rare people want to perform regular expression searches on files larger than 5 MB, so I feel this is sufficient to close issue #38.
2012-08-20 21:58:27 +02:00
Allan Odgaard
81c8d403b5 Update rmate: Preserve file permission flags 2012-08-20 21:07:43 +02:00
Jacob Bandes-Storch
8eb3dd0379 Calculate default gutter colors based on theme 2012-08-20 19:10:39 +02:00