Skip to content

Instantly share code, notes, and snippets.

@TejasAvinashShetty
Last active December 21, 2019 13:59
Show Gist options
  • Save TejasAvinashShetty/926f856e68f8a2d706e90d022c9e126a to your computer and use it in GitHub Desktop.
Save TejasAvinashShetty/926f856e68f8a2d706e90d022c9e126a to your computer and use it in GitHub Desktop.
use openwith

Configure the feature "open with pdf" in SideBarEnhancements plugin of sublime Text.

  • Click on a file to bring up the menu.
  • Select 'open with' > 'Edit Applications'
  • Add the fllowing code if you are in Ubuntu
            //application 3
            {
                "caption": "evince",
                "id": "side-bar-files-open-with-evince",

                "command": "side_bar_files_open_with",
                "args": {
                                    "paths": ["/usr/share/applications/evince"],
                                    "application": "evince", // linux
                                    "extensions":"pdf", //open all even folders
                                    "args":[]
                                },
                "open_automatically" : false // will close the view/tab and launch the application
            },
            

If not in 'Ubuntu' you wiill need to adjust "paths", "application", "extensions" yourself appropriately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment