0

Is it possible to run a command in the currently open shell via an action using the Kitty terminal emulator?

For example when defining hyperlink actions:

protocol file
mime inode/directory
action [RUN SHELL ACTION] cd ${FILE_PATH}

1 Answer 1

1

It is, I use these blocks:

# Opens file in vim in current terminal when clicked.
protocol file
mime text/*
#action launch --type=overlay $EDITOR $FILE_PATH
action send_text normal,application vi "${FILE_PATH}"\r

# Cd to directory and ls in current terminal when directory is clicked
protocol file
mime inode/directory
action send_text normal,application cd "${FILE_PATH}" && ls \r

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .