Skip to content

Commit

Permalink
Add command that shows the current configuration
Browse files Browse the repository at this point in the history
The command “Show Configuration as Tooltip” shows the current mapping
between characters – used by “Replace Character (→)” and “Replace
Character (←)” – as tooltip.
  • Loading branch information
sanssecours committed Jun 11, 2016
1 parent 31e3b8f commit e6e1c87
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Commands/Show Configuration as Tooltip.tmCommand
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/ruby
# -- Imports -------------------------------------------------------------------
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/support.rb'
# -- Main ----------------------------------------------------------------------
print CONFIGURATION.character_map.map { |row| row.chars.join ' ' }.join "\n"
</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^~@`</string>
<key>name</key>
<string>Show Configuration as Tooltip</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>toolTip</string>
<key>uuid</key>
<string>AC75E9E0-11C9-4DC7-BE46-AFAB82703737</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
1 change: 1 addition & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ documentation – available via the command “Help”.
<array>
<string>EBC0D447-9D38-4767-ACD1-533833E959A3</string>
<string>6DB6AC27-B52F-41CD-A65E-D674463D24D5</string>
<string>AC75E9E0-11C9-4DC7-BE46-AFAB82703737</string>
<string>------------------------------------</string>
<string>2A66FE8E-163B-4FEF-A3C8-2497115ED180</string>
<string>B286B5E4-E57D-4402-9E6E-656645015DD9</string>
Expand Down

0 comments on commit e6e1c87

Please sign in to comment.