Osmose / advanced-open-file

Open files and folders in Atom easily.
https://atom.io/packages/advanced-open-file
Other
118 stars 20 forks source link

Improve wording of "empty" option for default input value pref #33

Open cjbottaro opened 9 years ago

cjbottaro commented 9 years ago

When I open the advanced-open-file dialog, the path always starts with /Users/me/path/to/my/project/... (.e.g. an absolute path). Can there be an option to only show a relative path (relative to project root)?

Thanks.

Osmose commented 9 years ago

Thanks for the suggestion!

So if you set the "Default input value" to empty, it will interpret it as a relative path to the project root and let you build paths from there. The only thing that seems missing to me is an option for "Active file's directory" but with a relative path instead of an absolute one. Would that cover your use case?

It'd still need to be absolute if the file you're editing is outside of a project folder but that's fine.

cjbottaro commented 8 years ago

Oops, I didn't see that option. That does what I want. Thank you!

Osmose commented 8 years ago

Cool, less effort for me then. :D

digiwano commented 8 years ago

@Osmose It would actually be very nice to get a 'active file folder but relative'.. I had not realized that "empty" meant "project root but relative" either, though, so to save confusion for others perhaps instead it would be less confusing if the options were just "project root" and "active file folder" with a separate option for "use relative paths"?

Osmose commented 8 years ago

That's a fair point. I'm not a fan of that particular wording but I agree it could be improved.

I've been terrible at finding time to fix these things myself, but I'll leave this open to track changing the wording to something better, like "Relative project root".