Skip to content

A command to use with lighthouse to search a folder and launch commands.

License

Notifications You must be signed in to change notification settings

davidlgj/lighthouse-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command to be used with lighthouse (https://github.com/emgram769/lighthouse).

Searches a folder for matches and executes a command on matching path, suitable for launching terminals, editors etc

Can use a prefix for selecting command.

Usage

lighthouse-command <command> [<prefix>|<command>...] --folder=<folder>


A `command` is a string that will  be used as a template for the selected folder. Use `{}` for placement of selected folder name.
Ex. `"atom {}"`

A prefix lets you add extra command accesible by typing a charachter and a space either before search term or after.
Ex `"c|code {}"` adds a command that can be triggered by typing something like "c foobar" or "foobar c" into lighthouse.

`--folder` specifies the folder to search.

Example, with `lighthouserc` pointing at `lighthouse-command`

```sh
lighthouse -- "alacritty --working-directory ~/projects/{}" "a|atom {}" "c|code {}" "g|xdg-open https://github.com/davidlgj/{}" --folder=~/projects | sh

About

A command to use with lighthouse to search a folder and launch commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages