Skip to content

open or copy annotated PATH to enter a directory #175

Description

@jacostag

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 :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions