Created
July 12, 2012 00:27
-
-
Save jtsagata/3094685 to your computer and use it in GitHub Desktop.
Linux rails-footnotes sublime-text-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy handler to /usr/local/bin | |
copy desktop file to /usr/share/applications | |
sudo update-desktop-database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined?(Footnotes) && Rails.env.development? | |
Footnotes.run! | |
Footnotes::Filter.prefix = 'subl://%s:%d' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=SBLHandler | |
GenericName=SBLHandler | |
Comment=Open subl links in Sublime | |
TryExec=sublHandler | |
Exec=sublHandler %u | |
Terminal=false | |
Type=Application | |
MimeType=x-scheme-handler/subl | |
NoDisplay=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
FILE=${FILE/subl\:\/\//} | |
sublime-text-2 $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment