sorry for the weird title, I couldn't really think of a nice way to word it.
In dired, you have the ability to insert directories into the same dired buffer dired-maybe-insert-subdir. I do this quite often. When you do this, the default-directory doesn't change, so if you're at one of these inserted directories, counsel-find-file will use the default-directory of the entire buffer, instead of the dired directory you're (point) is currently at. I'd prefer if in this case, counsel-find-file was smart enough to detect which directory you mean to be at and work from there. This is how helm works in dired buffers and having to navigate down to a directory first in dired and then again in counsel-find-file is inconvenient.
I insert the my_module directory into my dired buffer. Now I decide I want to create a new file at my_module/foo.py. I navigate down to where I inserted that directory (assuming I'm not already there) and then counsel-find-file. counsel-find-file begins not at my_module, it begins at the parent directory of my_module, now I have to navigate to my_module again and then type out foo.py to create it.
In the mean time, you can use this to get around this issue, but I'd prefer a built in solution:
sorry for the weird title, I couldn't really think of a nice way to word it.
In dired, you have the ability to insert directories into the same dired buffer
dired-maybe-insert-subdir
. I do this quite often. When you do this, thedefault-directory
doesn't change, so if you're at one of these inserted directories,counsel-find-file
will use thedefault-directory
of the entire buffer, instead of the dired directory you're(point)
is currently at. I'd prefer if in this case,counsel-find-file
was smart enough to detect which directory you mean to be at and work from there. This is how helm works in dired buffers and having to navigate down to a directory first in dired and then again incounsel-find-file
is inconvenient.For example:
say I'm in a dired directory like this:
I insert the my_module directory into my dired buffer. Now I decide I want to create a new file at my_module/foo.py. I navigate down to where I inserted that directory (assuming I'm not already there) and then
counsel-find-file
.counsel-find-file
begins not at my_module, it begins at the parent directory of my_module, now I have to navigate to my_module again and then type out foo.py to create it.In the mean time, you can use this to get around this issue, but I'd prefer a built in solution:
The text was updated successfully, but these errors were encountered: