numberwang icon indicating copy to clipboard operation
numberwang copied to clipboard

Option to expand relative paths

Open jrunning opened this issue 10 years ago • 0 comments

It would be nice if numberwang had an --expand/-x option to expand paths upon copying. For example, here is numberwang's current behavior:

$ pwd
/Users/jrunning/foo

$ touch bar/baz.txt

$ cat test.txt
Look in ../foo/bar/baz.txt

$ cat test.txt | nw
{1} Look in {../foo/bar/baz.txt}

to clipboard: 1
nw: wrote "../foo/bar/baz.txt " to clipboard

It would be great if we could get this behavior instead:

$ cat test.txt | nw --expand
{1} Look in {../foo/bar/baz.txt}

to clipboard (expand): 1
nw: wrote "/Users/jrunning/foo/bar/baz.txt " to clipboard

This would be especially handy if #5 were implemented.

jrunning avatar Nov 30 '15 18:11 jrunning