Regular kill-line in the minibuffer

38 views
Skip to first unread message

Ribonous

unread,
Jan 10, 2013, 7:10:03 PM1/10/13
to emacs...@googlegroups.com
Say I call M-x helm-find-files.

and say that I type some path:

/this/is/a/long/path

now say that I move my cursor (point) in the minibuffer to

/this/is[CURSOR]/a/long/path

and I want to kill the rest (i.e. /a/long/path)

If I were in a regular Emacs buffer, I could press C-k (kill-line) to kill everything coming after [CURSOR], but in Helm, C-k deletes the full pattern.

Is there a way of calling the regular kill-line within the minibuffer when in helm? (I personally would prefer to bind C-k back to kill-line, since I can always delete the full pattern with C-a C-k).

Thanks!

Lukas

Thierry Volpiatto

unread,
Jan 11, 2013, 2:19:31 AM1/11/13
to emacs...@googlegroups.com
Hi,

Ribonous <ribonu...@gmail.com> writes:

> Say I call M-x helm-find-files.
>
> and say that I type some path:
>
> /this/is/a/long/path
>
> now say that I move my cursor (point) in the minibuffer to
>
> /this/is[CURSOR]/a/long/path
>
> and I want to kill the rest (i.e. /a/long/path)
>
> If I were in a regular Emacs buffer, I could press C-k (kill-line) to kill
> everything coming after [CURSOR], but in Helm, C-k deletes the *full* *
> pattern*.
>
> Is there a way of calling the *regular kill-line* within the minibuffer
> when in helm? (I personally would prefer to bind C-k back to kill-line,
> since I can always delete the full pattern with C-a C-k).
Indeed it was missing, I fixed it in exp branch.
So now you can either set `helm-delete-minibuffer-contents-from-point'
to 't' or use `C-u C-k'.

Note: It is not a kill command but a delete command (in both case).

Thanks.

--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Ribonous

unread,
Jan 11, 2013, 7:19:28 PM1/11/13
to emacs...@googlegroups.com
 Fantastic. Works like a charm. Thanks!

Reply all
Reply to author
Forward
0 new messages