9fans / plan9port

Plan 9 from User Space
https://9fans.github.io/plan9port/
Other
1.63k stars 321 forks source link

acme: support spaces in file names stored in acme.dump #613

Open mbucc opened 1 year ago

mbucc commented 1 year ago
$ pwd
/Users/foo/Documents
$ mkdir test\ a \ space
$ cd test\ a\ space
$ 9 acme
   (Dump acme.dump, Exit)
$ 9 acme -l acme.dump

At this point, acme loads but prints the error "can't open /Users/foo/Documents/test: No such file or directory"

I tried a work around of dumping to a path without spaces, but that did not work.

ref: https://github.com/9fans/plan9port/pull/331

mbucc commented 1 year ago

Workaround: don't use a dump file.

mbucc commented 1 year ago

This may be a related issue.

If you sweep a file path with a space in it, acme will not open a window for that directory.

For example, if you have an acme window for /a spacy dir/abc.txt and (on a Mac) you hold the Command key down and sweep the string /a spacy dir/ acme does not open a window for that directory.

Likewise, a Edit = and a subsequent Cmd-Click (again, on Mac) silently fails to open that file to that line.

mbucc commented 1 year ago

Workaround: Don't close the window displaying the project root directory when you first open acme.