Skip to content

Flow launcher

Arjun Mahishi edited this page Jan 4, 2023 · 1 revision

:FlowLauncher is a command that helps manage custom commands powered by this plugin. The launcher is built as a telescope extension. This can be used to quickly create/edit/delete custom commands that you want to run while writing code. For example, running tests, compiling, running linters, running the code, etc.

Usage

  1. Make sure that you have the telescope plugin installed -- (here's how to install it)

  2. Run the command :FlowLauncher. This will launch a telescope interface to manage custom commands. Here you can add/edit/remove custom commands. If you are running this for the first time, you will have no custom commands. So, just type an alias you want for the custom command and hit enter image

  3. This will open a new buffer where you can type in the command you want to run and save it. Saving will automatically close the buffer image

  4. Run :FlowLauncher again. Now you will be able to see the new command you just created. Navigate to that using either arrows or any key bindings you have set to navigate telescope. Once you navigate to the command, hit enter. This will execute the command and print the output as a message (displayed at the bottom. Refer docs) image

    output

    image

  5. Run :FlowLauncher again. Now navigate to the same command and press ctrl-e. This will open up the command editing buffer again where you can edit the command to run and save

  6. You can add as many custom commands as you want. Typing an alias that doesn't already existing and hitting enter in the telescope interface will create new command (like step 2)

  7. When you have multiple custom commands, you can start typing in the telescope interface to search through the aliases

  8. You can delete a custom command by navigating to the alias you want to delete and pressing ctrl-d

Clone this wiki locally