katspaugh / ido-at-point

ido-at-point
51 stars 4 forks source link

In Shell mode sub-directories get removed on completion of paths #5

Closed halloleo closed 10 years ago

halloleo commented 10 years ago

When I use ido-at-point-mode in a shell buffer (in Shell mode) and I complete a filename in a sub-directory ido-at-point-mode deletes the (upper) directory from the command-line:

Here the the situation just before I hit TAB for the completion:

ido-at-point-mode_issue_before-complete

And now the situation just after the completion:

ido-at-point-mode_issue_after-complete

So ido-at-point-mode has removed the directory portion "user-lisp/" from the command line. This is obviously wrong, because in the current shell directory is no file leo-ess.el, only in the sub-directory user-lisp/.

katspaugh commented 10 years ago

Yes, it appears all-completions in this mode is returning completions without the preceding path. I shouldn't have assumed completions always contain the user input. Need to look closer how minibuffer.el deals with this.

katspaugh commented 10 years ago

Hey @halloleo, sorry it took so long to fix, but it should be working now.

katspaugh commented 10 years ago

There's another issue with Shell mode: ido-at-point doesn't list the directory contents.