Commit Graph

65 Commits

Author SHA1 Message Date
Allan Odgaard
01568c5b62 Add preliminary bundle install support. 2012-09-04 00:00:36 +02:00
Allan Odgaard
d5a262c1e5 Checkin release notes 2012-09-04 00:00:36 +02:00
Allan Odgaard
8b65acf393 Reverse menu search order
This is specifically to find the actions bound to modifier + [, {, }, and ] before finding the actions bound to modifier + numbers, since on some keyboards, modifier + number results in one of the brace characters.

This should address issue #374 (although this isn’t a fix per se for the underlying problem of having some key maps result in duplicate keys in the menus).
2012-09-03 22:00:23 +02:00
Allan Odgaard
9f5aa0b2a8 Allow folders and bundles to be opened with TextMate
This is mainly for TextMate’s own Open With menu, as it doesn’t seem to affect Finder’s (and TextMate already did support folders being dragged onto its application icon).
2012-09-03 16:42:16 +02:00
Allan Odgaard
d85ba6cab6 Checkin release notes 2012-09-03 15:28:58 +02:00
Allan Odgaard
2d2dd62351 Change scm::status::versioned → none
The scm::status::versioned status has now been removed.

The upshot of this is that SCM drivers can leave out files that are “clean” from their status map, and TextMate will assume they have status “none” (clean). This cuts down on the amount of data that needs to be sent (and/or processed) by the SCM drivers.
2012-09-02 17:53:50 +02:00
Allan Odgaard
b2bb89c150 Disable main menu’s key equivalent handling
This is done by overloading performKeyEquivalent: for the main menu (by setting it to OakMainMenu in MainMenu.xib).

The default implementation of performKeyEquivalent: does not know about scope selectors so it will sometimes call the wrong actions. For example a bundle overloading ⌘X for “-dyn.selection” may still see the item fire with a selection.

This wasn’t a problem previously, as we set the key equivalents via (deprecated) Carbon API (so presumably Cocoa didn’t know about the keys).

This is a preliminary implementation, I just want it out there to have it tested for edge-cases. Long-term we can probably remove the overload of performKeyEquivalent: on OakTextView, which sort of does similar (stops Cocoa from executing the wrong menu actions or interfering with multi-stroke key bindings).
2012-09-01 14:17:47 +02:00
Allan Odgaard
ec7992424f Checkin release notes 2012-09-01 00:22:30 +02:00
Allan Odgaard
49ae19c527 Keep (installed) auth server up-to-date
The recent move to 64 bit broke the (binary) protocol used between TextMate and the server for authenticated reads/writes (since size_t is now 64 bit).

This fixes issue #354.
2012-08-31 23:16:39 +02:00
Allan Odgaard
eb3e7dd8f2 Fix running mate via sudo
Since we now use the (numeric) user ID as part of TextMate’s named socket (to allow multiple users on the same system to each run an instance of TextMate), mate needs to know this.

Running ‘mate’ via ‘sudo’ has getuid() return zero (root), hence why we need to specifically handle this.
2012-08-31 23:16:39 +02:00
Allan Odgaard
73ff758a52 Coerce keyFileCustomPath to UTF-8
The text encoding (or even field type) can be practically anything, so we need to either handle everything or coerce to UTF-8.

This is a quick fix for an issue with QuickCursor, a more thorough review of encoding used with AppleEvents is to follow.
2012-08-31 14:58:26 +02:00
Allan Odgaard
4aa5581cfd Checkin release notes 2012-08-30 15:46:42 +02:00
Allan Odgaard
0e96a04d76 Remove compatibility checks
Since we now require 10.7 we don’t need all of this. Keeping it around is just noise that can lead to confusion about code paths.
2012-08-29 16:02:29 +02:00
Allan Odgaard
cbe91ff831 Assume compiler support for explicit keyword
Since we require a fairly recent clang for other features, there is no reason to test for this one.
2012-08-29 14:27:35 +02:00
Allan Odgaard
a167fe338c Checkin release notes 2012-08-29 14:27:35 +02:00
Jacob Bandes-Storch
34d65bbb26 Use 64-bit: alignment pragma change 2012-08-28 21:32:46 +02:00
Jacob Bandes-Storch
9584afba16 Use 64-bit: replace SELNAME with sel_getName 2012-08-28 21:32:46 +02:00
Jacob Bandes-Storch
e3aa997b06 Use libc++: replace std::tr1 with std 2012-08-28 13:30:20 +02:00
Allan Odgaard
e4fcd7987f Update release notes styling
Thanks to Khadgar (irc nick) for this!
2012-08-28 12:54:26 +02:00
Allan Odgaard
09573d7e2a Checkin release notes 2012-08-27 20:19:05 +02:00
Allan Odgaard
dc807119a4 Add preliminary CSS styles for key equivalents 2012-08-27 19:29:50 +02:00
Allan Odgaard
2ef6253f25 Fix release notes to work with key equivalent script 2012-08-27 19:29:50 +02:00
Jacob Bandes-Storch
6aeb27f02f Use Cocoa instead of Carbon for popup menus 2012-08-27 01:03:16 +02:00
Jacob Bandes-Storch
1aec57762c Bring back the dock menu 2012-08-27 01:03:16 +02:00
Allan Odgaard
9c89911576 Checkin release notes 2012-08-26 20:32:22 +02:00
Allan Odgaard
92b3c9e2c5 Remove hardcoded paths from settings_t
Mainly this is because when we run tests, we do not want global or default settings from TextMate, so now TextMate.app explicitly sets the path to the default and global settings (unlike when running tests).
2012-08-26 01:26:16 +02:00
Allan Odgaard
d259c07bd5 Change default font size to 12 2012-08-25 20:29:22 +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
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
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
8d4cf3cad0 Checkin release notes 2012-08-23 00:57:07 +02:00
Allan Odgaard
d629f6cbe3 Checkin release notes 2012-08-22 14:34:25 +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
53bcc664b3 Update installed mate if required 2012-08-21 21:23:41 +02:00
Allan Odgaard
134bea2b6c Checkin release notes 2012-08-20 15:44:47 +02:00
Allan Odgaard
714bb12924 Checkin release notes 2012-08-19 21:08:06 +02:00
Allan Odgaard
8e28856cb7 Select paragraph now bound to ⌃⌥P 2012-08-19 14:36:22 +02:00
Allan Odgaard
e0a5fcb460 scmls: Show all but “none” status type 2012-08-18 15:30:25 +02:00
Allan Odgaard
c7f267cd12 Show error if failing to unlink old socket
This is in response to issue #183.
2012-08-18 15:30:24 +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
d978d7af9c Checkin release notes 2012-08-16 11:13:46 +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
61071c153d Checkin release notes 2012-08-15 01:19:35 +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
Bo Xiao
96cb899b53 Initial commit of Simplified Chinese localization for xib files. 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
6763406fe5 Bind Opt+F1 to show bundle item popup. 2012-08-14 19:29:00 +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