micro editor

Custom scripts

textfilter does not parse arguments to a shell that would expand $HOME so you could try binding with command:textfilter sh -c \"~/path_to_script\".

You could also move the script to a directory in $PATH (default ~/.profile may add ~/.local/bin) so that you'll just have to bind command:textfilter script_name

Programs in $PATH can be run anywhere, so I personally add a prefix like micro- in the filename or avoid adding program-specific parts in scripts.

↑ Back to the top