Skip to content

Instantly share code, notes, and snippets.

@rudvfaden
Created May 22, 2015 09:17
Show Gist options
  • Save rudvfaden/0b4620d6136b93041916 to your computer and use it in GitHub Desktop.
Save rudvfaden/0b4620d6136b93041916 to your computer and use it in GitHub Desktop.
sidebar menu elementary os
[
{"id": "side-bar-files-open-with",
"children":
[
//application 1
{
"caption": "Chome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "usr/bin/google-chrome", // OSX
"extensions":".*", //any file with these extensions
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
//separator
{"caption":"-"},
//application 2
{
"caption": "Evince",
"id": "side-bar-files-open-with-evince",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "usr/bin/evince", // WINNT
"extensions":".pdf", //open all even folders
"args":[]
},
"open_automatically" : true // will close the view/tab and launch the application
},
//application n
{
"caption": "Okular",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "usr/bin/okular",
"extensions":".pdf", //any file with extension
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
{"caption":"-"},
//application n
{
"caption": "LyX",
"id": "side-bar-files-open-with-lyx",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "usr/bin/lyx",
"extensions":"tex|lyx", //any file with extension
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
{"caption":"-"},
//application n
{
"caption": "LibreOffice",
"id": "side-bar-files-open-with-writer",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/usr/local/bin/libreoffice4.4",
"extensions":"doc|docx|xlsx|xls|xlsm|ppt|pptx|odt|ott|odm|oth|ods|ots|odg|otg|odp|otp|odf|odb|oxt|csv|txt", //any file with extension
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment