Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

absolute path at end of current path should find existing dir #30

Open
michaeldurland opened this issue Oct 12, 2016 · 2 comments
Open

Comments

@michaeldurland
Copy link

Hi,
I love iOpener!
I have a small enhancement request: If I enter an absolute path at the end of the current path, then it should resolve to the new path instead of trying to append to the existing path.
e.g. I hit ctrl+o and get:
/data/projects/my_project/
which is where the current file is located. So far so good. Now I want to open a file in my home directory, say my .bashrc file. I want to be able to type it right at the iOpener prompt like this:
/data/projects/my_project//.bashrc
But iOpener thinks this path doesn't exist, well, because it doesn't exist. The enhancement is to recognize when an absolute path is being entered and trigger resolving to just that path instead of trying to use the entire path in the prompt. So the above should resolve to just "
/.bashrc" and be able to find an open the file. Currently I have to backspace over the existing path to enter the absolute path I want.
Same for non-home directories. e.g. start with:
/data/projects/my_project/
and type at the end to get:
/data/projects/my_project//tools/config/my_file.cfg
should resolve to just "/tools/config/my_file.cfg".
The tab key should do the resolution too to prompt files in the new directory. e.g.:
/data/projects/my_project//tools/config/
should prompt to show files in the /tools/config directory.
Thanks!
Michael

@DeeeeLAN
Copy link

I am interested in this enhancement as well. Emacs behaves by ignoring the previous path if it finds // or /~ in the entry field.

@DeeeeLAN
Copy link

Fixed in #36 if it ever gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants