Commit Graph

127 Commits

Author SHA1 Message Date
Allan Odgaard
64ff8a53e7 Go to SCM Status is now a toggle
This is implemented by invoking “go back” if already showing an SCM URL. If there is no history (unlikely) then we instead “go up (parent)” which should take us to the root of the repository.
2012-08-18 15:30:24 +02:00
Allan Odgaard
7cca8f3f4a Use Objective-C literals
This brings it in line with the rest of the source, which have embraced these.
2012-08-18 15:30:23 +02:00
Allan Odgaard
56d763ee21 Update URL for ninja and CxxTest bundles
These are now stored at the TextMate GitHub account.
2012-08-18 15:30:23 +02:00
Allan Odgaard
7f68e1a8e5 Download URL now taken from the GitHub response
Previously it was based on a hardcoded URL template. This also adds an extra check on the GitHub response, to see if we actually got a URL back.
2012-08-18 15:30:23 +02:00
Allan Odgaard
fee36aaec9 Favorites prefixed with ‘[DIR]’ show folders within
For example if you have all your projects under ~/Projects then you can do:

    mkdir -p ~/Library/Application\ Support/TextMate/Favorites
    cd ~/Library/Application\ Support/TextMate/Favorites
    ln -s ~/Projects "[DIR] My Projects"

This will then have all the folders inside ~/Projects show when you choose Open Favorites… (⇧⌘O).

Long-term it might be useful to store actual property lists in the favorites folder, akin to smart folders (i.e. describe a query for what to show) and/or allow descending into the folders shown in the ⇧⌘O window.
2012-08-18 15:30:23 +02:00
Allan Odgaard
8a5fb16367 Let configure create DefaultBundles.tbz
Motivated by a lot of “where is the syntax highlight?” questions from users that build from source, we now always create the DefaultBundles.tbz (if it doesn’t exist).
2012-08-16 11:46:15 +02:00
Allan Odgaard
d978d7af9c Checkin release notes 2012-08-16 11:13:46 +02:00
Allan Odgaard
218551185b Add gdb targets to build.ninja
Since ninja run each build job with its own stdin/out/err we can’t launch gdb itself in a build job, so we use osascript to launch gdb in a new window.

I used Terminal for this only because it is simpler to script than iTerm2.
2012-08-15 23:23:24 +02:00
Allan Odgaard
4a22d1af54 Split disableIndentCorrections into two settings
The `disableIndentCorrections` setting now only disables the (aggressive) indent corrections that TextMate does while you type.

There is an additional `indentOnPaste` which you can set to:

1. `simple` — this is the indent behavior which was previously implied when setting `disableIndentCorrections`. It indents the paste to the position of the caret and works well for Python.
2. `disable` — the text is inserted as-is without indenting it.
3. «unset» — indent the paste based on the indent patterns of the current scope.
2012-08-15 22:59:51 +02:00
Allan Odgaard
d8c73a82c8 Pasting on empty line no longer inserts newline
This closes issue #69.
2012-08-15 22:53:47 +02:00
Allan Odgaard
85a17b6355 Software update no longer asks about saving changes
If session restore has been disabled then we will still ask, since the user would otherwise lose his changes. Ideally we’d launch the new instances with session restore temporarily enabled.
2012-08-15 22:11:50 +02:00
Allan Odgaard
2307db6631 Allow relaunch without user interaction 2012-08-15 22:00:23 +02:00
Allan Odgaard
6a554d1c68 Retire code necessary to gracefully upgrade from r9110 2012-08-15 21:14:39 +02:00
Allan Odgaard
d1a31f6bff Test if bind or listen fails
This is motivated by issue #165 where someone reports the named socket does not exist.
2012-08-15 20:48:36 +02:00
Allan Odgaard
67dc0b3943 Make OakRunIOAlertPanel accessible from C++
I moved it to a C header. An alternative would be to put some #ifdef’s around the Objective-C stuff in OakAppKit.h, but with the standalone header, it’s clear that this is the only thing we need from OakAppKit.
2012-08-15 20:47:18 +02:00
Paul Wilde
f4ecbe0f1e Updated Preferences icons for HiDPI displays. 2012-08-15 19:48:01 +02:00
Allan Odgaard
73088e87c3 Update ramte
The new version supports reading settings from /etc/rmate.rc and ~/.rmate.rc.

It also does a better atomic save.
2012-08-15 19:44:32 +02:00
Allan Odgaard
926f3ba09d Add a TM_ISSUE_URL setting
See 570d25795d for detauls.
2012-08-15 16:47:36 +02:00
Allan Odgaard
e9d30644e9 Improve tab trigger boundary checks
When two neighboring characters have different character class or one is an alpha numeric character (excl. underscore) and the other is not, we consider this a valid boundary for a tab trigger.

This closes issue #157.
2012-08-15 16:07:23 +02:00
Allan Odgaard
c7c45b448b Make code to obtain character class public
This includes renaming the constants from using a rather generic kType prefix to kCharacterClass.
2012-08-15 16:00:28 +02:00
Allan Odgaard
9e1d10b5f1 Remove debug output
I was initially under the impression that no data should be sent past EOF but from testing it is clear that this assumption is incorrect. It’s unimportant though as we do handle the case (though we didn’t initially, and that’s why I put in the fprintf, to verify the situation I guarded for actually was happening).
2012-08-15 15:58:38 +02:00
Allan Odgaard
52b01e0f6e Fix test failure for builds in source tree
The fs::snapsot_t class creates a finger print of a folder. We used the source tree for testing, but if the source tree hosts the build directory, then the fingerprint will (likely) change, since we run simultaneous build jobs.

It now uses the Frameworks folder in the source tree, as it’s unlikely that someone would place their build directory in this location.
2012-08-15 02:41:15 +02:00
Allan Odgaard
d255324966 fixup! Remove old tab trigger render code 2012-08-15 02:41:15 +02:00
Adam Strzelecki
5fbf567820 When $builddir is relative path, pass absolute path to fixtures makefile. 2012-08-15 02:41:15 +02:00
Allan Odgaard
61071c153d Checkin release notes 2012-08-15 01:19:35 +02:00
Adam Strzelecki
4354febdbc Test all versions of clang for “new enough” 2012-08-15 01:18:39 +02:00
Allan Odgaard
b7174fafa0 Add phoney target for deploying
The nightly builds still require me to manually run the ‘TextMate/deploy’ target, so if we can make it 9 characters shorter, it’s totally worth it! :)
2012-08-15 00:33:33 +02:00
Allan Odgaard
1250964a6d File browser shows context menu on ⌥F2
The key is consistent with the default key for bringing up the context menu in the text view — that key is however taken from the key bindings dictionary, so ideally we’d do the same in the file browser. Need to factor out the key bindings parsing code first though, and in theory the key bindings dictionary allow for multi-stroke bindings.

This implements issue #18.
2012-08-15 00:33:33 +02:00
Allan Odgaard
1892e0a557 Make the file drop path relative to current file
Previously these were relative to the project directory with current file’s directory as a fallback, but 1.x used current file.
2012-08-14 22:42:51 +02:00
Allan Odgaard
05298ee8dc Insert path when dropping binary files
This is only when there is no drop command for the file type.
2012-08-14 22:35:11 +02:00
Allan Odgaard
28199a8547 Add CSS to release notes
Presently just a symbolic link to the Help Book’s CSS.
2012-08-14 22:14:56 +02:00
Allan Odgaard
cc436b2dfa fixup! Remove old tab trigger render code 2012-08-14 22:08:27 +02:00
Allan Odgaard
69a9d8deba Update rmate script (fix for --host=auto) 2012-08-14 21:45:03 +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
Allan Odgaard
0ceff6beab Remove old tab trigger render code
This code was using (the no longer there in the 10.7 SDK) GetPortBounds() to be able to render into a CGContextRef.

It was also using the private _NSGetCarbonMenu to be able to install the menu handler (that augmented the rendering).
2012-08-14 21:29:51 +02:00
Allan Odgaard
f743c1954f Move help book out of English.lproj
This way localizations without a help book will fall back on the english one.
2012-08-14 21:17:09 +02:00
Adam Strzelecki
7bd9f9817b Improve tab trigger rendering
This is using NSAttributedString’s NSTextTableBlocks:

* Font is determined from current menu rather than hardcoded
* Fixed: Invalid font size on bundle-item popup
* Fixed: Both tab triggers and key equivalents can co exists on single menu item
* No relayout calculations are needed after menu update (this is done automatically by NSLayoutManager when using NSTextTables)
* Uses 10.5 compatible API
2012-08-14 21:00:02 +02:00
Allan Odgaard
15afc1398b Revert "Draw tab triggers and key equivalents in menu"
Reverts 25071ce6e5
Reverts 757219b8f1
2012-08-14 20:55:53 +02:00
Adam Strzelecki
6763406fe5 Bind Opt+F1 to show bundle item popup. 2012-08-14 19:29:00 +02:00
Adam Strzelecki
752430f339 Check current grammar bundle in bundle item popup.
Do not specify selected index explicitely, popup menu item with NSOnState gets selected by default.
2012-08-14 19:13:15 +02:00
Adam Strzelecki
98de1f5f51 Select popup menu item only on non-negative index. 2012-08-14 19:13:14 +02:00
Adam Strzelecki
8a8432d065 Select current grammar at bundle item popup. 2012-08-14 19:13:14 +02:00
Allan Odgaard
ea88c5a713 Handle txmt: URLs without a file argument 2012-08-14 18:43:37 +02:00
Allan Odgaard
e5c2daa05a Revert "Use current document when no URL given in txmt URL"
Pending improved implementation which also handle the case where frontmost document is untitled.

This reverts commit 2beac7080b.
2012-08-14 18:43:37 +02:00
jtbandes
5aaebb9e25 Remove bundles.h dependency, re-add menu action 2012-08-13 22:06:32 -07:00
jtbandes
757219b8f1 fixup! Draw tab triggers and key equivalents in menu
Fix memory leak
2012-08-13 21:46:12 -07:00
Allan Odgaard
0bc9380b1b Checkin release notes 2012-08-13 23:34:32 +02:00
Allan Odgaard
718ea40002 Use path::is_absolute instead of own logic 2012-08-13 22:54:09 +02:00
Allan Odgaard
4259a8f884 Add path::is_absolute.
This is actually not entirely trivial since we can have a path that starts with a slash but includes more ‘..’ components than there are actual directories in the path.
2012-08-13 22:53:16 +02:00