From e6e1c8715abe5ae34a4fad7315d2256787a01e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Schwaiger?= Date: Sat, 11 Jun 2016 21:25:02 +0200 Subject: [PATCH] Add command that shows the current configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The command “Show Configuration as Tooltip” shows the current mapping between characters – used by “Replace Character (→)” and “Replace Character (←)” – as tooltip. --- .../Show Configuration as Tooltip.tmCommand | 38 +++++++++++++++++++ info.plist | 1 + 2 files changed, 39 insertions(+) create mode 100644 Commands/Show Configuration as Tooltip.tmCommand diff --git a/Commands/Show Configuration as Tooltip.tmCommand b/Commands/Show Configuration as Tooltip.tmCommand new file mode 100644 index 0000000..1505040 --- /dev/null +++ b/Commands/Show Configuration as Tooltip.tmCommand @@ -0,0 +1,38 @@ + + + + + beforeRunningCommand + nop + command + #!/usr/bin/ruby + +# -- Imports ------------------------------------------------------------------- + +require ENV['TM_BUNDLE_SUPPORT'] + '/lib/support.rb' + +# -- Main ---------------------------------------------------------------------- + +print CONFIGURATION.character_map.map { |row| row.chars.join ' ' }.join "\n" + + + input + none + inputFormat + text + keyEquivalent + ^~@` + name + Show Configuration as Tooltip + outputCaret + afterOutput + outputFormat + text + outputLocation + toolTip + uuid + AC75E9E0-11C9-4DC7-BE46-AFAB82703737 + version + 2 + + diff --git a/info.plist b/info.plist index aaaba0a..b25371e 100644 --- a/info.plist +++ b/info.plist @@ -17,6 +17,7 @@ documentation – available via the command “Help”. EBC0D447-9D38-4767-ACD1-533833E959A3 6DB6AC27-B52F-41CD-A65E-D674463D24D5 + AC75E9E0-11C9-4DC7-BE46-AFAB82703737 ------------------------------------ 2A66FE8E-163B-4FEF-A3C8-2497115ED180 B286B5E4-E57D-4402-9E6E-656645015DD9