
다음을 사용하여 현재 열려 있는 셸에서 명령을 실행할 수 있습니까?고양이터미널 에뮬레이터?
예를 들어, 하이퍼링크 동작을 정의하는 경우:
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