是否可以通过使用以下命令的操作在当前打开的 shell 中运行命令猫咪终端模拟器?
例如,定义超链接操作时:
protocol file
mime inode/directory
action [RUN SHELL ACTION] cd ${FILE_PATH}
答案1
是的,我使用这些块:
# 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