minibuffer history search with multi-line items

38 views
Skip to first unread message

Ryan B

unread,
Jan 4, 2013, 7:47:32 PM1/4/13
to emacs...@googlegroups.com
hi all! has anyone used helm to search minibuffer history when some entries have embedded newlines? i have many multi-line items in my compile and shell-command history, for example.

search/matching works ok, but selection doesn't. helm treats each line as a separate item, so pressing enter only pulls the single selected line from a multi-line entry into the minibuffer.

i'm running git head on emacs 23.3.1 on ubuntu precise. (i know, i should upgrade to emacs 24, but this is on a locked down work computer where i can't easily add apt repos.)

thanks in advance!



--
http://snarfed.org/

Ryan B

unread,
Jan 4, 2013, 7:49:39 PM1/4/13
to emacs...@googlegroups.com
to clarify, this is reproducible with emacs -q, then this:

(require 'helm)
(require 'helm-config)
(require 'helm-files)

...then M-x compile, enter a few multi-line commands, then M-x compile, C-r, and enter a few characters from one of the commands.

Thierry Volpiatto

unread,
Jan 5, 2013, 12:42:10 AM1/5/13
to emacs...@googlegroups.com
Ryan B <goo...@ryanb.org> writes:

> to clarify, this is reproducible with emacs -q, then this:
>
> (require 'helm)
> (require 'helm-config)
> (require 'helm-files)
>
> ...then M-x compile, enter a few multi-line commands, then M-x compile,
> C-r, and enter a few characters from one of the commands.
I wonder why you are entering multi lines in minibuffer for such
tasks...
But well:

(helm-attrset 'multiline nil helm-c-source-minibuffer-history)

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

Thierry Volpiatto

unread,
Jan 5, 2013, 12:47:01 AM1/5/13
to emacs...@googlegroups.com
Thierry Volpiatto <thierry....@gmail.com> writes:

> Ryan B <goo...@ryanb.org> writes:
>
>> to clarify, this is reproducible with emacs -q, then this:
>>
>> (require 'helm)
>> (require 'helm-config)
>> (require 'helm-files)
>>
>> ...then M-x compile, enter a few multi-line commands, then M-x compile,
>> C-r, and enter a few characters from one of the commands.
> I wonder why you are entering multi lines in minibuffer for such
> tasks...
> But well:
>
> (helm-attrset 'multiline nil helm-c-source-minibuffer-history)

I could make this the default.

Ryan Barrett

unread,
Jan 9, 2013, 10:22:00 PM1/9/13
to emacs...@googlegroups.com
perfect, thanks! that works for me. (and sorry for the delay.) i don't have an opinion on the default, feel free to do whatever you think is best.
Reply all
Reply to author
Forward
0 new messages