-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
I could not find a way to just verify if is a directory and to copy to clipboard the content or to return the PATH saved as annotation.
I was trying to use ^/ as a regex and filter to match directories.
I have a script that manages to do that, but if that can be included on taskopen the better :)
dirs.target=annotations
dirs.regex="^/"
dirs.command="command on scripts cd-path"
dirs.modes="any"
Any idea of what am I missing?
It is working, the PATH is on the cb
I have a glitch, some tasks are using xdg and is opening nautilus instead of copying the PATH
Here is the config I am using:
modify the regex for files
files.regex="^[\\.\\/~]+.*\\.(.*)^/$" #ignore if it ends with /
dirs.target=annotations
dirs.regex="^/(.*)?/"
# on wayland, copy the PATH to cb / use it to cd $(taskopen ID) directly
dirs.command="wl-copy -n cd $FILE"
dirs.filtercommand = "test -d $FILE"
dirs.modes="batch,any,normal"
I have not found a way to use extra tw filter (+dir) to narrow the tasks results, but is working :)
Metadata
Metadata
Assignees
Labels
No labels