Commit Graph

1635 Commits

Author SHA1 Message Date
Allan Odgaard
b62e2227ca Checkin release notes v2.0-alpha.9429 2013-06-09 22:08:04 +08:00
Allan Odgaard
85425d618c Add debug output for requesting authorization
This is to resolve #995.
2013-06-09 21:58:09 +08:00
Allan Odgaard
478068f4f0 Support “Find Previous” in macros 2013-06-09 21:58:09 +08:00
Allan Odgaard
db97493459 Fix retain cycle.
Fixes #1009.
2013-06-09 21:58:08 +08:00
Allan Odgaard
c8d249dde7 Avoid passing -1 (as fd) to kevent() and close()
Observing paths will normally fail when opening files that only privileged users can read.
2013-06-09 21:58:08 +08:00
Allan Odgaard
344c5c68fa Workaround for a wrong bundle index
This is work in progress, the reason why the situation arise has not yet been found and there are likely other ways in which the index can be wrong/stale (based on user reports like issue #998).
2013-06-09 21:58:08 +08:00
Joachim Mårtensson
c89d4851aa Apply injections from child rules without match pattern
This is useful when including a grammar and its injections needs to be applied.
2013-06-09 21:57:59 +08:00
Allan Odgaard
6d4cf22f13 Checkin release notes 2013-05-26 17:59:07 +08:00
Allan Odgaard
9dd653a3e7 Ignore non-UTF-8 completion command results 2013-05-26 17:27:44 +08:00
Allan Odgaard
6a9b0374ed Sanitize non-UTF-8 command output
We now convert the output to a hex-dump incase it is not valid UTF-8. Ideally we would present the user with a dialog, but for now a hex-dump will do and prevents a potential crash.
2013-05-26 17:26:06 +08:00
Allan Odgaard
2df18d80b0 The bundle’s info.plist can now specify requiredCommands
This will apply to all items in the bundle so it’s questionable if it’s something we want to use, as it would not allow the user to run a “Help” command from the bundle without first setting up the requirements. OTOH setting requiredCommands for all but a few items in e.g. the Git bundle seems redundant — perhaps items should be able to eclipse keys from the bundle’s info.plist to effectively unset the requiredCommands for a select few items.
2013-05-26 15:40:23 +08:00
Allan Odgaard
0594b2c83e Fix issue with requirements that had no locations array
The variable provided was ignored meaning that it would only work correctly if the executable was found via PATH, and if it wasn’t found, the error message would display a bogus character as the variable that the user should set.
2013-05-26 15:34:54 +08:00
Allan Odgaard
2568503056 Fix executing bundle items via UI for non-main window
This affected executing bundle items via the Bundles menu (including the Select Bundle Item… dialog) in the text view used in the bundle editor.
2013-05-26 15:15:51 +08:00
Allan Odgaard
8017428011 If deleting old version fails then move it to trash
We also add a time suffix to the old version so that if we fail to remove it, the user will not get (another) error when retrying the update.

Presumably fixes #991.
2013-05-26 13:32:46 +08:00
Allan Odgaard
05bb8d3304 Log malformed UUID incase of error
This is instead of showing “no valid UUID” (which could mean either missing or malformed).
2013-05-26 13:16:22 +08:00
Allan Odgaard
ef6082006d Failing to set/remove extended attributes is no longer an error
Workaround for osxfuse/osxfuse#85 (and possibly other file systems).
2013-05-26 10:24:35 +08:00
Allan Odgaard
f8d71729fe Add SOCKS proxy support
This is for updating bundles and itself plus posting crash reports.

It now also ignores unknown proxy types.
2013-05-26 10:24:35 +08:00
Allan Odgaard
ee32b97ea0 Fix error checks for key chain lookups 2013-05-26 10:24:35 +08:00
Allan Odgaard
15c11d02b8 Checkin release notes v2.0-alpha.9425 2013-05-18 08:53:07 +08:00
Allan Odgaard
e3c44d78db Add missing variables for export commands
Fixes #990.
2013-05-18 08:51:23 +08:00
Allan Odgaard
da96859de6 Checkin release notes 2013-05-17 18:54:39 +07:00
Allan Odgaard
126ff16b58 Increase TextMate’s lifetime
We now warn 45 days after the compilation date and refuse to work 90 days after the compile date.
2013-05-17 16:18:22 +07:00
Allan Odgaard
03d72414f3 Specify that dependency files are ‘gcc’ (for ninja 1.3.0) 2013-05-17 15:31:14 +07:00
Allan Odgaard
e0523bb926 Improve encapsulation 2013-05-16 21:36:49 +07:00
Allan Odgaard
eb6b0541b2 Move reader_t and process_t to command framework
These are now only used by the command framework and should soon be retired.
2013-05-16 21:36:49 +07:00
Allan Odgaard
ffb900deb1 Add missing include 2013-05-16 21:36:49 +07:00
Allan Odgaard
b747dc662b Delete cf::run_loop assignment/copy constructor
They were previously declared private, as they weren’t implemented and we can’t use generated versions.
2013-05-16 21:36:49 +07:00
Allan Odgaard
03aea09148 Use io::spawn instead of oak::command_t for TextMate.system
Like with snippets, we no longer support executing a shebang-script given “inline” — though this was never a documented feature and I am not aware of anything having made use of it.
2013-05-16 21:36:49 +07:00
Allan Odgaard
b6fce5fe30 Check if command result is valid UTF-8
This was previously implicit by using oak::command_t
2013-05-16 21:36:43 +07:00
Allan Odgaard
28ab42bff9 Remove oak::command_t 2013-05-16 21:36:07 +07:00
Allan Odgaard
714779d89b Use io::spawn instead of oak::command_t with snippets
Since we now run the shell code directly (via ‘/bin/sh -c «command»’) we no longer source ‘TM_SUPPORT_PATH/lib/bash_init.sh’.

I don’t think any code embedded in snippets rely on things setup by this file, but if they do, I’d prefer we update the snippets to explicitly source the file.
2013-05-16 21:36:00 +07:00
Allan Odgaard
a2e7de29e7 Add missing include 2013-05-16 21:29:59 +07:00
Allan Odgaard
7dbb02652f Use io::spawn instead of oak::command_t for /usr/bin/diff3 2013-05-16 21:29:35 +07:00
Allan Odgaard
598c3b7a89 Allow completion commands to have requirements 2013-05-15 22:58:06 +07:00
Allan Odgaard
e3bc6e982b Introduce editor_delegate_t
This is to avoid having editor_t hold a document_t.
2013-05-15 22:38:02 +07:00
Allan Odgaard
e80e9c5172 Remove private methods from header 2013-05-15 21:23:15 +07:00
Allan Odgaard
7f88fcbdf3 Fix problem with opening multiple empty files on FAT file systems
The problem is that empty files on a FAT file system all have the same inode so TextMate would consider them to be links of each other and only show the last one opened.

Fixes #979.
2013-05-15 16:17:06 +07:00
Allan Odgaard
0795b89bdb Clicking already selected search result reselects the match
Previously we ignored clicks and only selected matches when the selection was changed. This was done to prevent firing off two “select match” actions. We now ignore the “selection changed” notification if the current event is a mouse-up.
2013-05-15 15:45:36 +07:00
Allan Odgaard
a366a5f9fe Move grammar changed callback from document → buffer 2013-05-15 15:45:36 +07:00
Allan Odgaard
adf52e1ab2 Forward grammar changes to text view 2013-05-15 15:45:36 +07:00
Allan Odgaard
58dc0b0491 Remove path::walker_t
The intent of this class was to allow ad-hoc recursive/lazy walking of a directory structure and having links only visited once.

It was however only used once, and for that task, path::entries() is sufficient.
2013-05-15 15:45:36 +07:00
Allan Odgaard
6e4926177e Provide symmetric content/set_content for document_t 2013-05-15 15:45:36 +07:00
Allan Odgaard
6aa871576f Don’t read user settings from file::path_attributes
The reason for this is mainly that the path given to path_attributes() might be a virtual path, in which case using that to obtain settings can cause problems. For example if the (virtual) path is ‘/net/some/long/path’ (rmate) then we’ll hit that path locally, but stat’ing paths under /net can take seconds.

Also, the ‘scopeAttributes’ read from the user settings isn’t technically path attributes. Though the feature this allows is that we can scope the encrypt/decrypt export/import commands to ‘attr.enable-encryption’ and then put something like this in a project’s .tm_properties:

    [ private/** ]
    scopeAttributes = "attr.enable-encryption"
2013-05-15 15:45:36 +07:00
Allan Odgaard
f956ba905f Move path_variables function to where it is used 2013-05-15 15:45:36 +07:00
Allan Odgaard
cbe937d3f3 Convert CFURL → std::string in plist::convert
This is mainly for debugging purposes (printing a CFDictionary).
v2.0-alpha.9421
2013-05-13 18:10:47 +07:00
Allan Odgaard
66b8ab54f9 Rewrite proxy code
We now use CFNetworkCopyProxiesForURL() to get the list of potential proxies, hopefully this will perform the proper “proxy auto discovery” (issue #973) though we still need to handle PAC ourself.

Presently we only use the first proxy found, ideally we would try them all (but this will require some API changes).
2013-05-13 18:08:35 +07:00
Allan Odgaard
f5c63828ee Remove path attributes from document_t 2013-05-12 23:04:57 +07:00
Allan Odgaard
61b8c844a5 fixup! Handle “did-save” bundle item callback in OakTextView 2013-05-12 22:48:46 +07:00
Allan Odgaard
91901bfdd3 Call bundleItemPreExec:… from command execution
This is instead of having a copy of the same code. Ideally command execution would be called after potential pre-exec stuff, but macro execution is presently handled by editor_t which doesn’t have access to the higher level stuff.
2013-05-12 11:09:18 +07:00
Allan Odgaard
e5cca3de18 Remove ‘document_settings’ API 2013-05-12 11:09:18 +07:00