Commit Graph

469 Commits

Author SHA1 Message Date
Allan Odgaard
639f1d282f Remove OakCreateSmallLabel helper since it’s only used once 2014-09-30 17:08:01 +02:00
Allan Odgaard
05bd76ad0b Make “Restore Session” default for session restore dialog
Since disabling session restore will discard user data, it should not be default.
2014-09-27 13:06:31 +02:00
Allan Odgaard
bf73951ec9 Checkin release notes 2014-09-26 23:18:48 +02:00
Allan Odgaard
6f4afd97fa Checkin release notes 2014-09-17 11:41:40 +02:00
Allan Odgaard
7920c930c3 Use Objective-C boxing instead of stringWithUTF8String: 2014-09-13 17:09:22 +02:00
Allan Odgaard
73b21bd836 Move WebView related print support to OakHTMLOutputView 2014-09-10 14:02:08 +02:00
Allan Odgaard
c559253a14 Allow printing WebViews even when they are not first responder
Starting with 10.9 (I think) it seems that when the WebView switches content view to show a PDF, it will lose first responder status, so pressing ⌘P (to print the PDF) does not work, but require the user to first click the PDF (to make the view first responder).

This commit uses a heuristic to figure out which view should be printed when the first responder is not a printable (web/PDF) view.
2014-09-08 22:14:51 +02:00
Allan Odgaard
ac151e7d4c Allow editing .tm_properties files from bundle item chooser 2014-09-07 10:31:16 +02:00
Allan Odgaard
1f1cfee5e9 Set path/directory for bundle item chooser (for .tm_properties) 2014-09-07 10:31:16 +02:00
Allan Odgaard
c7ef9d2d78 Fix typo 2014-09-02 21:16:43 +02:00
Allan Odgaard
a241fd8a5a Checkin release notes 2014-09-02 21:15:48 +02:00
Allan Odgaard
2aae17aeb3 fixup! Add items to recent menu when ‘mate’ is called without -w option 2014-09-01 17:36:57 +02:00
Allan Odgaard
7d448c993f Remove --change-dir from mate’s usage information
I don’t think anyone uses it, so consider it deprecated and subject for removal.

Also update the short options list to the currently valid options.
2014-08-30 16:19:23 +02:00
Allan Odgaard
5412a767e8 Partially revert bc31da8f03
The menu items containing ‘«unit» / Selection’ in their default title are automatically updated to show the proper unit by our text view’s menu validation.
2014-08-30 15:41:21 +02:00
Allan Odgaard
db1fa96114 Add items to recent menu when ‘mate’ is called without -w option
One can force adding to the recent menu by using --recent or disable it (for files we do not wait on) using --no-recent.
2014-08-30 08:51:33 +02:00
Allan Odgaard
4afbf0c0e3 Remove incorrect text about -w being ignored for multiple files
Also update it in an attempt of improving it.
2014-08-28 22:02:49 +02:00
Allan Odgaard
9c5557b442 Boolean mate options are now --[no-]option to force on/off 2014-08-28 22:02:49 +02:00
Allan Odgaard
b624726f9f Remove unused option 2014-08-28 22:02:49 +02:00
Allan Odgaard
14211e5f29 Change all local variables to use camelCase 2014-08-28 22:02:49 +02:00
Allan Odgaard
bf81caa448 Fix titlecase menu item to say “Line” instead of “Word” 2014-08-22 14:33:02 +02:00
Allan Odgaard
2f1c4c05c4 Do not use ‘timeIntervalSinceNow’ with dates in the past
We previously negated the result but now we instead ask for [[NSDate date] timeIntervalSinceDate:startDate].
2014-08-21 16:07:23 +02:00
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