Commit Graph

45 Commits

Author SHA1 Message Date
Allan Odgaard
29e0a2fec5 Make the rmate listen port a string instead of integer
When using an integer it got “pretty printed” by NSTextField (to have a thousand separator). If the user would “commit” this version, the version with the thousand separator would be stored in user defaults, which would make TextMate fail t listen to the desired port.
2013-03-16 17:49:47 +01:00
Allan Odgaard
2d4d4729d2 Remove ‘rmate’ submodule
With the script installable via rubygems there is no longer any reason to include it with TextMate.app and thus keep it as git submodule.
2013-03-16 17:47:19 +01:00
Allan Odgaard
c561d2447b Add UI setting for disabling auto-resize
The auto-resize is when toggling the file browser.
2013-03-11 17:48:20 +01:00
Allan Odgaard
104ed0e325 Treat ‘nil’ as empty string
With bindings, clearing a text field results in its value being set to nil.
2013-02-22 18:15:11 +01:00
Allan Odgaard
0bf5a85a1c Resize window when toggling file browser
If you dislike this it can be disabled using:

    defaults write com.macromates.TextMate.preview disableFileBrowserWindowResize -bool YES
2013-02-19 21:13:53 +01:00
Allan Odgaard
8c9adfc198 Move some user defaults key to respective framework
Initially I wanted all keys in a single header file but to avoid circular dependencies then this header would need to be in a framework that doesn’t depend on anything else, and the main benefit was only to have a single place to look for which keys exist, but now that we consistently prefix settings keys with ‘kUserDefaults’ then it’s easy to extract all keys via search.
2013-02-08 12:01:20 +01:00
Allan Odgaard
ebc4fa26af Use regexp::match_t::operator[]
Also bypass NSString/c_str() by using std::stod().
2013-02-08 11:20:35 +01:00
Allan Odgaard
9eb4044fdb Switch to simpler regexp::search 2013-02-08 11:20:35 +01:00
Allan Odgaard
af67a1a6f6 Check version of installed mate in background 2013-02-03 10:48:45 +01:00
Adam Strzelecki
60965ce6c3 Tab bar above document option
This change adds new option for showing tab bar only above document, so the
file browser header lines up with tab bar.

File browser header height reduced by 1 pixel to match tab bar height. It also
draws optional top divider when in same line as tab bar
2013-01-28 12:42:28 +01:00
Allan Odgaard
a883854145 Use divider lines in root view
Previously we placed the views with a one point gap between them and had the superview fill the background. This works fine, but has the somewhat theoretical disadvantage that the superview then needs to implement drawRect: and for performance reasons declare that it is “opaque” which means subviews can’t use the (true) window background, should they want to.

Also add a preferences key for “tabs above document” (issue issue #214), but not hooked up in this commit.
2013-01-28 12:42:28 +01:00
Allan Odgaard
ece57c79b8 Tab bar collapsing now disabled by default 2013-01-25 17:44:17 +01:00
Steven Clukey
d25c07f3a4 Added ability to set default type to use for unknown documents. 2013-01-24 12:13:24 +01:00
Allan Odgaard
f0f64ccde4 Change some default settings
- File browser placed on right.
- HTML output placed in new window.
- Theme set to Twilight.
2013-01-23 18:56:32 +01:00
Allan Odgaard
645f8d91e1 Let OS handle keys for Go to Tab submenu
My memory is a little vague here, but I believe the point of handling the menu keys was to workaround a bug in NSMenu.

The bug was that NSMenu would look at (the target of) cached menu items, probably for UI validation, so potentially sending methods to unretained objects, which could lead to a crash. Several workarounds were attempted (like clearing the target property after the menu had been displayed) but the only effective one was overloading key handling.

I’m quite sure though that this bug is no longer relevant.
2013-01-22 11:00:27 +01:00
Allan Odgaard
cbe38c92ce Initialize encoding pop-up (Preferences)
Previously this would always show UTF-8 and cause an existing setting to be overwritten (with UTF-8) when bringing up the preferences window.
2013-01-21 05:54:28 +01:00
Allan Odgaard
e834b68343 Remove duplicate of public symbol 2013-01-08 22:48:07 +01:00
Allan Odgaard
47fa0f040c Use Objective-C literals for YES/NO 2013-01-02 01:46:48 +01:00
Allan Odgaard
93776ca9a1 Use Objective-C literals 2013-01-02 01:46:47 +01:00
Allan Odgaard
9e332438e7 Use block-based alert API 2013-01-02 01:46:47 +01:00
Allan Odgaard
71be61cbbb Enable ARC by default
We now explicitly disable it for targets that hasn’t yet been upgraded to ARC. This way, it’s easier to get an overview of which targets hasn’t yet been upgraded and ensures new targets has ARC enabled.
2012-12-19 19:42:36 +01:00
Allan Odgaard
78d0effb5a ARC: Update Preferences framework 2012-10-24 18:19:18 +07:00
Allan Odgaard
1fafbecd54 Remove Chinese translation
It’s not feasible to maintain the old-style xib translations while we work on the UI. We’ll soon move fully to constraint-based layout which should allow translations to be purely string-based.
2012-09-16 11:41:23 +02:00
Jacob Bandes-Storch
dfdde3283f Use 64-bit: explicit visibility where required 2012-08-28 21:32:47 +02:00
Jacob Bandes-Storch
9584afba16 Use 64-bit: replace SELNAME with sel_getName 2012-08-28 21:32:46 +02:00
Allan Odgaard
4cf204d0a0 Handle tilde in mate’s install path
Older versions of TextMate stored the install path with the tilde so we always need to (potentially) expand that when fetching the install location.

The lack of doing this was likely the cause of issue #302.
2012-08-27 19:29:50 +02:00
Allan Odgaard
7ecc0a8731 Add new settings to project page
This includes the previously hidden initial file browser location, whether or not to permanently show the tab bar, placement of file browser and command output.
2012-08-25 23:26:11 +02:00
Allan Odgaard
0ca407b72c Move user defaults keys to Keys.{mm,h} 2012-08-25 23:14:15 +02:00
Allan Odgaard
895dd9a1bd Use escape sequence for line endings
This is to make the tmProperties file more transparent (should the user wish to manually inspect it).

As the variable part in the settings is treated as a format string, we can use ‘\r’ and ‘\n’ for CR and LF respectively.
2012-08-25 14:54:47 +02:00
Allan Odgaard
9ad4bbd35f Hookup document type in Preferences window
All UI settings in TextMate should now work and be sticky.

Closes issue #162.
2012-08-25 02:06:04 +02:00
Allan Odgaard
9425bbeadf Hookup Preferences window to tmProperties
Presently the new file type is not setup to use tmProperties as the way this is specified (in tmProperties) needs special-casing. Will likely change that.
2012-08-25 02:06:04 +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
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
d8328e2c4f Drop use of OakSavePanel in Terminal preferences 2012-08-20 22:50:32 +02:00
Jacob Bandes-Storch
c0f65b6101 Convert multipage tiffs back to 1x/2x pngs 2012-08-20 17:30:33 +02:00
Allan Odgaard
416b718747 Tweak default variables in Preferences
These are (now) all disabled, so it’s mainly just for guidance.
2012-08-19 15:01:22 +02:00
Paul Wilde
f4ecbe0f1e Updated Preferences icons for HiDPI displays. 2012-08-15 19:48:01 +02:00
Bo Xiao
00b65bbd28 Updated chinese translation for terminal preference panel. 2012-08-14 21:29:52 +02:00
Bo Xiao
96cb899b53 Initial commit of Simplified Chinese localization for xib files. 2012-08-14 21:29:51 +02:00
jtbandes
ee11103d2d Change deployment target of all xibs to OS X 10.7 2012-08-11 23:04:00 -07:00
jtbandes
45b68389f2 Save all xibs with Xcode 4.4.1 (4F1003) 2012-08-11 23:04:00 -07:00
Allan Odgaard
2dcc7ec7b4 Keep version of mate (installed) in defaults
This is so that we know when to update the installed version.
2012-08-11 20:49:55 +02:00
Allan Odgaard
23280529ce Include ‘mate’ in application ressources.
Previously we installed this from the Bundle Support bundle’s support path.

While the Bundle Support bundle is a requirement to work with TextMate, including mate in the resources section should ensure we always get the latest build and address issue 53.
2012-08-10 18:30:35 +02:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00