Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Extend to work in sh-mode #13
Comments
Ambrevar
commented
Jun 27, 2017
|
Same thing for eshell, with Would it be possible to refactor the function parameters so that it takes either a string or 2 positions? |
szermatt
added a commit
that referenced
this issue
Aug 12, 2017
|
f639154 introduces |
szermatt
closed this
Aug 19, 2017
Ambrevar
commented
Sep 1, 2017
|
Thanks for this addition. I've just tested it and I don't seem to be able to complete anything but files.
assuming |
|
Where did you set the start point you passed to the function? It must be set at the beginning of the command (on the "l" of "ls) From your description, it sounds like you set start and end at (point). |
Ambrevar
commented
Sep 1, 2017
|
Forgot to mention the call:
The former code was
used to work when I first posted on this issue, it does not anymore. Something got wrong somewhere else. Could be on my end too. |
|
I can reproduce this behavior if there is no programmable completion registered for "ls", even when using bash-completion-dynamic-complete, then what follows -- gets expanded as file completion. Something's not right. I'll have a look. However, when there is programmable completion registered for "ls", I get the expected argument completion when I use your code (I didn't use pcomplete, just printed out the result) |
Ambrevar
commented
Sep 1, 2017
|
Indeed, as you can see from my last code snippet, |
szermatt
added a commit
that referenced
this issue
Sep 2, 2017
|
It should work now. Thank you for the report! It was a silly old bug that must have caused quite some confusion. Any luck getting full completion to work in eshell? |
szermatt
added this to Notable Changes for Release
in 2.1 Release
Sep 2, 2017
Ambrevar
commented
Sep 3, 2017
•
|
Thank you, all good now. Completion is a wonder in Eshell thanks to those simple lines:
I recommend using Helm as a selection menu. (Don't know if it works with Ivy.) Bash completion is sometimes lacking. The fish shell arguably provides better completion. |
nverno commentedNov 9, 2016
•
edited
I love this package! It seems fairly easy to extend it to work in
sh-modewith the followingredefinition of
comint-line-beginning-positionThis works well for me so far, but haven't tested it thoroughly. Is this necessary, or am
I doing something unneeded with this?