13 Commits

Author SHA1 Message Date
Allan Odgaard
f16e83fb4f Get rid of APP_REVISION
This was just mirroring the last part of our version number so redundant and it wasn’t monotonically increasing as we switched from alpha.n → beta.1 (with n > 1), so it probably did more harm than good.
2014-10-30 20:49:10 +01:00
Allan Odgaard
6359a2ef7c Use symbolic exit success/failure constants 2014-04-21 17:05:35 +07:00
Allan Odgaard
1c308c810d Use map::emplace instead of inserting std::pair (C++11) 2013-09-05 20:59:11 +02:00
Allan Odgaard
80422c2b46 Exclude variables when dumping all settings
The variables can already be shown by running ‘env’ via ⌃R.
2012-09-24 22:57:50 +02:00
Allan Odgaard
2aa0be435f Change --key → --setting
The generic tm_query name makes me think we may later use it to query TextMate about other things than settings.
2012-09-24 22:57:49 +02:00
Allan Odgaard
56bbac282d If requested setting is not found, we return 1 2012-09-24 22:24:02 +02:00
Allan Odgaard
15ad4876b0 If no path is given, use TM variables
This allows simply calling (for example):

    "$TM_QUERY" --key windowTitle

And it’ll return the window title in effect for the current file.
2012-09-24 22:18:39 +02:00
Allan Odgaard
d730059382 Print file name as given rather than as full path 2012-09-24 22:16:24 +02:00
Allan Odgaard
ed33eb5021 Use Inherited environment for settings
This ensures we get e.g. windowTitle based on TM_DISPLAYNAME etc.
2012-09-24 21:57:21 +02:00
Allan Odgaard
46639b4bd6 Skip querying for variables
Since variables are already part of the settings, this is not necessary.
2012-09-24 21:32:29 +02:00
Allan Odgaard
f4e0bb88c7 Add default properties to search path
The default settings located inside TextMate.app are only available when called from TextMate (since it relies on the TM_APP_PATH environment variable)
2012-09-24 21:32:29 +02:00
Ole Gammelgaard Poulsen
ca25560f19 Added tm_query CLI that returns settings and variables for a file 2012-09-24 21:32:29 +02:00
Allan Odgaard
062e8e4e62 Add skeleton for tm_query tool 2012-09-24 21:32:29 +02:00