Sublime Forum

Yet Another Launcher - Plugin

#1

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

v1.0.3 - bug fix

  • fixed a bug that generated wrong urls for items

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 or Default.sublime-commands.

Without arguments the command runs the launcher with all items. The arguments itself are optional. Possible arguments are:

  • “by_launcher”: True
    • launcher let you select which launcher to launch
  • “by_category”: True
    • launcher let you select which category to launch
  • “category”: “url” or “file+sys” or “file+subl”
    • launcher shows only items from that category
  • “launcher”: “name of the launcher, e.g. default”
    • launcher shows only items from the given launcher

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
2 Likes

#2

Link to the repo?

0 Likes

#3

Sorry. Link is now in the initial post. :slight_smile:

0 Likes

#4

It is available on PackageControl now. You can easily try the package for yourself:

https://packagecontrol.io/packages/Yet%20Another%20Launcher

0 Likes

#5

Current version is now v.1.0.3 - I released a new version and fixed two bugs afterwards. :frowning:

Anyway, now are different launcher commands supported and the launcher should work correctly again. Sorry for that.

Shouldn’t take long until the new version will be available on PackageControl.

0 Likes

#6

V1.0.4 is live now.

0 Likes

#7

v1.0.5 - out on Github and soon on PackageControl as well

  • 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
0 Likes