本帖最后由 searchpojie 于 2024-10-30 20:50 编辑
根据关键字过滤已经保存的路径
jm . 保存当前路径
https://gitee.com/osboy/jump_or_open
直接source mp.sh 就可以加载
Usage:
"jump to" with "j" or "open with finder/explorer" with "jo" to the specified line number
or "choice list number" with keyword in the current ~/.marks file.
"mark" current path into ~/.marks file with "jm".
j, jo, jd, jm, show marks file list with line number
j -h, jo -h, jd -h, jm -h, show help
j /[SOME_PATH], jo /[SOME_PATH], "jump to" or "open" /SOME_PATH
j [LINENUM], jo [LINENUM], jd [LINENUM], "jump to" or "open"
or "del" the LINENUM matched path in ~/.marks file
j [KYEWORD], jo [KEYWORD], jd [KEYWORD], grep -i KEYWORD ~/.marks,
list all matched record, show the "choice list number" in first column.
You can input "choice list number" at first column to "jump to" or "open" the specified path.
If just match one path, "jump to" or "open" or "del" it directly.
j -, jump to previous folder
jd . , delete current path in ~/.marks file
jm . , mark current path append into ~/.marks file
jm /[SOME_PATH], add the path to ~/.marks file
jo . , open current path "."
|