Description
Suppose you have a folder structure like so:
- ~
- top
- mid1
- mid2
- bot
- top
and you start the interpreter inside ~.
With the prompt :cd top/_
and with _ as the cursor, doing haskell-interactive-mode-tab
(or (completion-at-point)
as that's what it actually uses) gives a selection for helm between top/mid1/
and top/mid2/
.
Selecting the latter then yields:
:cd top/top/mid2/
It seems that the selection candidates shouldn't include what's already written, at least when working with helm. For reference, doing the same thing in eshell:
Starting at cd top/_
and doing (completion-at-point)
shows mid1/
and mid2/
as selections and yields:
cd top/mid2/
Another thing that I found out while testing this was that sometimes (inconsistently) whatever haskell-interactive-mode-tab
uses for its selection doesn't update by itself. For instance, starting in ~/:
:cd top/
:cd _
Pressing tab here behaves as if it was in the ~
directory, not in top
. If you instead have a valid starting letter (e.g:cd m_
in this case), then it seems to expand consistently.