numberwang
numberwang copied to clipboard
Option to expand relative paths
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.