Commit Graph

448 Commits

Author SHA1 Message Date
Allan Odgaard
c032abb7e7 Checkin release notes 2014-08-17 22:47:38 +02:00
Allan Odgaard
ecc2f3ad90 Strip ANSI escapes when mate reads from stdin
A warning will be written to stderr when this happens. The user can provide -e/--preserve-escapes to disable the behavior.

Use -e0/--preserve-escapes=0 to suppress the warning.
2014-08-17 22:24:23 +02:00
Allan Odgaard
2e4603bc8c Alphabetize getopt_long() options
This makes it easier to see what letters are still available.
2014-08-17 22:24:23 +02:00
Allan Odgaard
4669dbaa28 Remove commented fprintf statements 2014-08-17 22:24:23 +02:00
Allan Odgaard
bc31da8f03 Do not set a special initial title for dynamic menu items
Having an initial title that is different from what the user will see makes it harder for them to change the key equivalent, since they most know what this initial title is.

For more info see http://lists.macromates.com/textmate/2014-January/036949.html
2014-08-15 23:24:13 +02:00
Allan Odgaard
b1e40e6203 Fix placement of bundle item chooser when there is no window 2014-08-14 20:37:38 +02:00
Allan Odgaard
df5b6b7a88 Setup bundle item chooser actions before causing content reload
Triggering a content reload will update the ‘enabled’ state of our buttons. These will be disabled if we have no actions set.

Of course the API should be so that the ‘enabled’ state is also updated when setting the actions, but I am being lazy here.
2014-08-14 17:43:26 +02:00
Ronald Wampler
9fece6576c Retrieve the sheet delegate if present in main window 2014-08-08 14:53:43 +02:00
Joachim Mårtensson
2df7620b8d Add Ruby 2.0 support for build scripts 2014-08-03 09:05:33 +02:00
Allan Odgaard
c0c193ce7f Update some ruby shebangs 2014-08-03 09:04:57 +02:00
Allan Odgaard
34a1347622 Checkin release notes 2014-07-31 18:14:08 +02:00
Allan Odgaard
5808eecd74 Add crash report info about what plug-in we’re loading 2014-07-31 18:13:51 +02:00
Allan Odgaard
65f8a8e9bf Use our “standard” idiom for setting menu item keys to ⌘1-n 2014-07-31 15:36:19 +02:00
Allan Odgaard
8d9a2f5426 Improve lifetime of the authorization wrapper used by mate
While the memory was released during exit, we didn’t free the authorization right, which is shared between multiple processes, unsure if that would actually leak any resources.
2014-07-30 17:40:23 +02:00
Allan Odgaard
421f087b18 Do not destroy shared authorization rights
Each time we used an authorization right in the privileged helper tool, TextMate would lose the right since the helper tool destroyed it after use.
2014-07-30 17:40:23 +02:00
Allan Odgaard
cc7f149f52 Avoid using Application Support for temporary file
Since the user’s library folder might be on a network we should probably avoid writing to it unless strictly necessary.
2014-07-24 22:37:38 +02:00
Allan Odgaard
6e1d094fbf Detect abnormal exit when loading plug-ins
Currently we ask user about skipping it, but it might make sense to also add an uninstall option.
2014-07-24 22:37:38 +02:00
Nyx0uf
8dbeabca23 QuickLook: Abort preview when type can't be determined 2014-07-22 23:07:59 +02:00
Nyx0uf
48ede9952b QuickLook: Check for cancellation
Add a bit of redundant code but it's useless to continue doing stuff if the request is cancelled by the user anyway.
2014-07-22 23:07:59 +02:00
Nyx0uf
3f716c27ad QuickLook: Handle thumbnail generation
Read at most 1 KiB or 50 lines of a file and render the attributed string in a bitmap context.

The theme is set to Mac Classic to ensure a white background for best look when the previews are used as icons in Finder.

The user’s default fixed width font in size 4 is used. With this font size only around 7 lines are shown, so we need to make it smaller, but we probably want to scale down the result to allow fractional line heights.

A lot of code is copy/pasted from the QuickLook preview generator.
2014-07-22 23:07:58 +02:00
Brad Choate
e94408b0c4 Support a "--warn" switch for gen_html.
Default is to suppress any warnings for unassociated GitHub profiles.
2014-07-22 12:13:35 -07:00
Allan Odgaard
754f1a1a4f Checkin release notes 2014-07-12 00:07:07 +02:00
Allan Odgaard
e4d92941ee Update QuickLook generator to use the new bundle item index
This should improve startup time significantly, since it would previously have to re-index all the bundle items.
2014-07-11 14:11:03 +02:00
Allan Odgaard
c57dd931e1 Let the bundle item chooser inherit from OakChooser 2014-07-09 17:25:16 +02:00
Allan Odgaard
565d0b915e Limit QuickLook preview to the first 20 KiB of the file
This was suggested in pull request #1226. Ideally we would make the limit flexible, e.g. see how much we can generate in 1-2 seconds, but that is a non-trivial change, so the fixed limit will do for now, and while truncated data is suboptimal, it’s better than being killed due to QL manager’s timeout.
2014-07-08 17:49:42 +02:00
Allan Odgaard
a7d45aa573 Checkin release notes 2014-07-06 22:35:47 +02:00
Allan Odgaard
a76b6eae9c Respond to next/previous tab actions in file/favorites chooser
This makes it possible to use ⌘{ and ⌘} to move between the source lists, which is consistent with other windows with multiple sources (like the Preferences and About windows).

Closes #1236.
2014-06-28 18:22:02 +02:00
Allan Odgaard
aa8aee6853 Checkin release notes 2014-05-18 23:16:31 +07:00
Allan Odgaard
3ece1917e6 Checkin release notes 2014-05-18 13:28:27 +07:00
Allan Odgaard
8d941cacc8 Increase TextMate’s “is old” threshold to 90 days 2014-05-16 22:11:29 +07:00
Allan Odgaard
c832c6a131 Release dispatch sources
This is to avoid them showing up in leak reports.
2014-05-15 13:17:29 +07:00
Ronald Wampler
3ed4722a80 Remove duplication of find_tags enumeration 2014-04-30 12:09:46 +07:00
Allan Odgaard
4ad377d630 Checkin release notes 2014-04-29 06:59:39 +07:00
Allan Odgaard
397fdb52d4 Make REST_API a global define and make it a C string 2014-04-28 18:23:50 +07:00
Allan Odgaard
c272afaff2 Cleanup/harmonize whitespace
Leading indent should consist only of tabs, beyond that, only spaces should be used.
2014-04-25 16:55:31 +07:00
Allan Odgaard
064cc09f99 Check if we have a ‘body’ when creating list of bundle changes 2014-04-22 08:16:34 +07:00
Allan Odgaard
6359a2ef7c Use symbolic exit success/failure constants 2014-04-21 17:05:35 +07:00
Allan Odgaard
7d1f7941b9 Include exclude operator in glob syntax comment/documentation 2014-04-19 17:01:31 +07:00
Allan Odgaard
5f670e0479 Checkin release notes 2014-04-18 20:43:24 +07:00
Allan Odgaard
bbfad640f5 Explicitly exit the commit window tool
We were relying on the run loop to wake up as part of running a delayed selector, but that did not happen prior to 10.9.
2014-04-16 22:55:16 +07:00
Allan Odgaard
f515bc70f8 Use lowercase for the status of implicitly installed bundles 2014-04-14 14:26:53 +07:00
Allan Odgaard
1f0e3db472 Remove trailing zeroes from numeric literals
I mainly dislike the trailing zeroes because CGFloat used to be a float but 1.0 is a double (1.0f would be a float). So better to under-specify and let the compiler figure out the proper type.
2014-04-14 14:26:52 +07:00
Allan Odgaard
39b94e6ac3 Harmonize whitespace and add trailing newline 2014-04-14 14:26:52 +07:00
Allan Odgaard
dde03783b2 Use more constants from sysexits.h for pretty_plist failure codes 2014-04-14 08:55:07 +07:00
Allan Odgaard
ec8208bbf5 Use constants from sysexits.h for bl failure codes 2014-04-14 08:55:06 +07:00
Allan Odgaard
5b47dca1e6 Add ‘sysexits.h’ as a precompiled header 2014-04-14 08:55:06 +07:00
Allan Odgaard
8f18aefe66 Update ‘bl’ to support list/install of default/mandatory bundles
We now have four meta-names: outdated, installed, defaults, and mandatories. These can be used to list or update/install the respective group of bundles.
2014-04-14 08:55:06 +07:00
Allan Odgaard
72d8d584ac Update Avian bundle 2014-04-13 12:56:02 +07:00
Allan Odgaard
cb5c6062cd Checkin release notes 2014-04-12 14:21:37 +07:00
Allan Odgaard
d549bb7a84 Remove unused include (cf/callback.h) 2014-04-12 11:22:38 +07:00