Commit Graph

511 Commits

Author SHA1 Message Date
Allan Odgaard
7428cd0939 Add workaround for 10.8 API
This should cause TextMate to once again run on 10.7 (issue #643).
2012-12-20 18:52:31 +01:00
Allan Odgaard
601cf28366 Use the low priority dispatch queue for update checks
Presently mainly a semantic change, as the dispatch queues are mostly empty, but as we adopt GCD for more things, it’ll be more important to put background tasks in a queue with lower priority than the one handling user requested tasks.
2012-12-20 14:02:39 +01:00
Allan Odgaard
2374aafde2 Clear delegate/datasource in dealloc
There are crash reports showing the gutter view accessing its datasource in OakDocumentView’s dealloc (based on a “bounds did change” notification fired when releasing a view).
2012-12-20 14:02:39 +01:00
Allan Odgaard
c7780d1392 Add placeholder text for “time remaining” 2012-12-20 14:02:39 +01:00
Allan Odgaard
cd78f6d29d Eliminate two instance variables 2012-12-20 14:02:39 +01:00
Allan Odgaard
bb38a193e2 Set window autosave name 2012-12-19 20:42:55 +01:00
Allan Odgaard
97ca44f8ad Use NSRunningApplication for application name 2012-12-19 19:42:45 +01:00
Allan Odgaard
f87a11f1bb Improve s/w update dialog text
A “Downgrade” button now appear if the version on the server is lower than the current one. This would e.g. happen if the user has upgraded to a nightly build and does a manual version check (for non-nightly builds).

If the version on the server is the same version as the one running, the user can make a “Redownload” button appear by holding down shift (⇧) when running the update check.
2012-12-19 19:42:45 +01:00
Allan Odgaard
0bac97c9ae Use GCD + blocks for s/w update download 2012-12-19 19:42:45 +01:00
Allan Odgaard
6969d7a98e Use GCD + blocks for s/w update check 2012-12-19 19:42:36 +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
88358ccf26 ARC: Update SoftwareUpdate framework 2012-12-19 19:42:36 +01:00
Allan Odgaard
ed45e1a241 Handle download in s/w update singleton 2012-12-19 19:42:35 +01:00
Allan Odgaard
4a25c7b98d Refactor software update
Move logic out of DownloadWindowController.
2012-12-19 19:42:35 +01:00
Allan Odgaard
0834649011 Improve binding properties
Each property now correspond to exactly one aspect of the UI allowing us to remove the logic and use the class as a view.
2012-12-19 19:42:35 +01:00
Allan Odgaard
3fdb50aa23 Save with Xcode 4.5.2 (4G2008a) 2012-12-19 19:42:35 +01:00
Allan Odgaard
476247b047 Use generated properties 2012-12-19 19:42:35 +01:00
Allan Odgaard
6bc36a565b ARC: Update ns framework 2012-12-19 19:42:35 +01:00
Allan Odgaard
1eb54282af Move attr_string.h to Find framework 2012-12-19 19:42:35 +01:00
Allan Odgaard
1102f8a528 Remove use of ns::attr_string
This is only motivated by easier transition to ARC (one framework at a time) as the ns/attr_string.h header contains manual memory management, which thus cannot be included by a framework using ARC, yet the code needs to be in the header since the code is template-based.
2012-12-19 19:42:34 +01:00
Allan Odgaard
71ec3d4c82 Add block-based show alert API 2012-12-16 21:27:06 +01:00
Allan Odgaard
0311f10974 Fix syntax error in debug line 2012-12-16 21:27:06 +01:00
Allan Odgaard
4d8f0422ec Provide “More Info…” for unsatisfied command requirements
See issue #622 for more details.
2012-12-16 00:01:13 +01:00
Allan Odgaard
397dc877af Use a block-based wrapper for NSAlert
This code isn’t ideal: We should make it a function instead of a class and the ‘info’ property should instead be done using a captured variable.
2012-12-16 00:01:13 +01:00
Allan Odgaard
c7934a5ae5 Do not hide pop-up list when losing focus
The “hide on focus” setting is inherited by the parent window, causing the entire window to hide.

Closes issue #590.
2012-12-15 20:41:03 +01:00
Boris Dušek
5369b7cf81 Add support for “Zoom follows the keyboard focus”
Zoom is an OS X accessibility feature that lets sighted visually
impaired users magnify screen content. This commit notifies Zoom of
changes of TextMate’s caret position on screen so that Zoom can
automatically follow the caret when the user moves it.
2012-12-14 21:55:12 +01:00
Boris Dušek
224ee5fd5e VoiceOver/accessibility support for text view
This commit adds support for most common accessibility
methods/attributes to the OakTextView component. In user's language,
VoiceOver users (i.e. blind and visually impaired users) can now use
TextMate to read and write text.

A few less used accessibility attributes remain to be supported -
especially AttributedStringForRange and StyleRangeForIndex which should
allow blind users to e.g. see and seek for spelling errors in text.
2012-12-14 21:55:12 +01:00
Allan Odgaard
36902cbc6c Factor out ng::range_t ⇔ NSRange methods 2012-12-14 21:55:12 +01:00
Michael Sheets
8bdbeacfcd Add indentOnPaste to ordering in bundle editor 2012-12-14 18:03:37 +01:00
Joachim Mårtensson
b03ee2f6ee Use same mechanism to limit redraw in modifiedURLs 2012-12-14 18:03:37 +01:00
Joachim Mårtensson
417ecef624 Refactored calculations of touched filebrowser items into its own method 2012-12-14 18:03:36 +01:00
Michael Sheets
ac8f88b33e Always set the TM_SOFT_TABS variable
Backwards compatibility for commands that expect the variable to always exist or match the NO state, this matches the behavior of 1.x.
2012-12-11 17:52:20 +01:00
Joachim Mårtensson
d983d5a5d2 Limit file browser refresh on open/close
If changes are limited to visible rows, we only reload these.
2012-12-11 17:52:16 +01:00
Allan Odgaard
c995b758c8 fixup! Allow disabling document status in file browser
If ‘location’ was nil, we would implicitly create a std::string from that, which is not allowed (and crashes).
2012-11-14 11:18:51 +07:00
Josh Goebel
dc34d5c9d9 Allow disabling document status in file browser
Disabling this is achieved by setting `fileBrowserDocumentStatus` to `false` in `.tm_properties`.

Disabling it should remove potential delays after opening, closing, and saving files when file browser is showing a lot of files. It is meant as a temporary workaround until the performance issues are addressed.
2012-11-12 13:28:34 +07:00
Adam Strzelecki
e5ac757fb6 Make command properties drawer shorter.
Re-layout input & output fields, so they don't enlarge whole drawer too much.
2012-11-12 13:28:34 +07:00
Allan Odgaard
91903319be ARC: Update BundleEditor framework 2012-11-12 13:28:34 +07:00
Allan Odgaard
921efb9f6e Don’t link with QuartzCore
This was originally done for CoreAnimation (which is no longer used).
2012-10-24 21:07:21 +07:00
Robert Hencke
7a9ff232fe Apply default gutter theme when no theme is active
Previously, if no themes were active, the gutter colors would
not be set.  This would, effectively, give you random gutter colors
on TextMate startup. (or, sometimes, a completely transparent gutter).
2012-10-24 21:07:21 +07:00
Allan Odgaard
6908062ac9 Fix command input with column selections
Discontinuous selections are still not supported for commands — probably the command should be run for each selection.

Issue #524.
2012-10-24 18:19:24 +07:00
Allan Odgaard
78d0effb5a ARC: Update Preferences framework 2012-10-24 18:19:18 +07:00
Allan Odgaard
b81bac3fda Change {updates → api}.textmate.org
Ideally we’d use the REST_API define setup for a few other targets.
2012-10-01 01:17:00 +02:00
Allan Odgaard
c8983cf95d Remove unused function
Previously was used by the ‘bl’ utility.
2012-09-30 23:06:58 +02:00
Allan Odgaard
da6afa03f0 Fix concurrency bug in path::make_dir
The function could fail if the directory was created after the function had tested that it didn’t exist, as the mkdir() would then fail (with “Already Exists”).
2012-09-30 23:06:58 +02:00
Allan Odgaard
494d38df16 Cycle discontinuous selections when using ‘transpose’
It performs a cyclic permutation. If there are only two selections, this is equivalent to swap, but with more discontinuous selections, it is possible to repeat the transpose until the selections are ordered as desired.
2012-09-30 23:06:58 +02:00
Allan Odgaard
e1b3f71a69 Let about window show license (if any)
There is currently no way to add a TextMate (1.x) license to the key chain, but those who used TextMate r9147 or earlier should have one stored already.
2012-09-30 23:06:57 +02:00
Allan Odgaard
aef4a2206c Use caret’s right scope when expanding tab triggers 2012-09-30 15:25:45 +02:00
Allan Odgaard
fa6659db28 Update dyn.caret/selection scopes
If there is one or more selections:

    dyn.selection

If there is a single zero-width selection:

    dyn.caret.mixed.columnar

If there are multiple carets and/or selections:

    dyn.caret.mixed

When there is only a single caret or a single continuous selection the left scope may contain:

    dyn.caret.begin.line
    dyn.caret.begin.document

Likewise the right scope may contain:

    dyn.caret.end.line
    dyn.caret.end.document
2012-09-30 15:25:45 +02:00
Allan Odgaard
cba6b3275b Send crash reports in low-priority dispatch queue 2012-09-30 15:25:45 +02:00
Allan Odgaard
67ab3de2b1 Refactor crash reporting code 2012-09-30 15:25:44 +02:00