ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Yet Another Launcher

by dahanbn ST3

Yet Another Launcher - a Sublime Text 3 launcher plugin

Details

Installs

  • Total 19
  • Win 9
  • OS X 6
  • Linux 4
Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7
Windows 0 0 0 0 0 0 3 0 1 0 1 0 1 1 0 0 0 1 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 2 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Yet Another Launcher (YAL) - a Sublime Text 3 launcher plugin

GitHub license Downloads Author

A Sublime Text plugin that is an easy launcher for local files, directories or urls.

You will find all release notes in RELEASES.md. For a quick overview follows the latest two release notes below.

v1.0.5

  • adding support for launching YAL with the arguments:
    • “by_launcher” - opens quickpanel and allows to select a launcher
    • “by_category” - opens quickpanel and allows to select an item category (url, file+sys, file+subl)
  • added “by_category” to menu and command palette (“by_launcher” was already there)
  • added support for expanding elements in path names (~, ~user, %USERPROFILE%, %APPDATA%, %LOCALAPPDATA%, %PUBLIC%, %WINDIR%, %SYSTEMROOT%, %TEMP%, %TMP%, %USERNAME% - ~/~user works on Windows as well)
  • switched to a development branch on Github for developing new features

v1.0.4 - added infos about releases

  • added release notes to repo and README.md

Installation

You only need to install this package:

Usage

Via Command Palette or Tools menu

You can access Yet Another Launcher via the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows) by selecting “Yet Another Launcher”.

You can also find the Yet Another Launcher submenu in the menu Tools.

Via keybindings

You can also easily bind the launcher command to a key of your choice, e.g. {"keys": ["f1"], "command": "yet_another_launcher"}. If you want to launch the default launcher only you can bind it with the following code: {"keys": ["shift+f1"], "command": "yet_another_launcher","args": {"launcher": "default"}},.

Notice: YAL doesn't set any keybindings per default. You have to set them yourself if you want to use it.

Via directly calling the command

The plugin defines one Sublime.WindowCommand with the name yet_another_launcher. You can run it on various places in Sublime Text, e.g. in the console via window.run_command("yet_another_launcher") or window.run_command("yet_another_launcher", {"launcher": "default"}).

You can see the various command arguments used in Main.sublime-menu.

Implemented Features

  • [X] initial release (v1.0.0)
  • [X] make the package available on PackageControl (v1.0.0)
  • [X] adding support for launching launchers by launcher names or category (v1.0.1)
  • [X] ability to show all launchers in the quick panel and let the user select one (v1.0.5)
  • [X] ability to show all item categories in the quick panel and let the user select one (v1.0.5)
  • [X] ability for expanding elements in path names (~, ~user, %USERPROFILE%, %APPDATA%, %LOCALAPPDATA%, %PUBLIC%, %WINDIR%, %SYSTEMROOT%, %TEMP%, %TMP%, %USERNAME% - ~/~user works on Windows as well)

Upcoming Features

Over time I will try to add the following features:

  • [ ] adding support for install / update messages for installs via PackageControl
  • [ ] testing it on Linux and making it work there (it should already work, but it isn't tested yet)
  • [ ] testing it on Mac and making it work there (it should already work, but it isn't tested yet)
  • [ ] implementing launcher category file+subl to open files in the current Sublime Text session
  • [ ] adding support for operating system dependend user settings

Configuration

You configure your launcher and launchable items via the plugin settings file. Via the application menu, go to "Preferences" -> "Package Settings" -> "Yet Another Launcher" -> "Settings - User".

Example configuration

The configuration is written in JSON as usual for Sublime Text settings.

You need a top level JSON-object called launchers. Under it you have to create different launcher objects. In the example you see a launcher called default.

YAL supports expanding of ~ / ~user on all operating systems, and the expansion of the following Windows environment variables on Windows: %USERPROFILE%, %APPDATA%, %LOCALAPPDATA%, %PUBLIC%, %WINDIR%, %SYSTEMROOT%, %TEMP%, %TMP%, %USERNAME%

{
    //
    // the "launchers" object is needed and contains all launchers
    //
    "launchers": { 
        //
        // under "launchers" you can create at least one named launcher,
        // at least you have to define one launcher with the name "default"
        // 
        // "default" is used if you launch YAL's default launcher
        //
        "default": {
            // 
            // in launchers you can create three different objects:
            // 
            // "url"       - for urls that will be opened in your default browser
            // "file+sys"  - for files or directories that will be opened with the
            //               default application of your operating system
            // "file+subl" - for files or directories that will be opened in your
            //               current Sublime Text session
            "url": {
                "Sublime Text 3 - Api Reference": "http://www.sublimetext.com/docs/3/api_reference.html",
                "Sublime Text Forum": "https://forum.sublimetext.com",
            },
    }
}

License

The plugin is licensed under the GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007. In detail you can read the licensing terms in the file LICENSE.