spawn command when no completion is available (if alwaysHighlight is True); changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

spawn command when no completion is available (if alwaysHighlight is True); changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord

Carlos López Camey
This small patch addresses
http://www.haskell.org/pipermail/xmonad/2013-February/013512.html.

The new behaviour also affects users that have alwaysHighlight set to
False (the default) in the following way:

 - "xterm -e emacs" autocompleted to e.g.
["emacs","emacs23","emacs-24.2",..] before (using the last word)
 - "xterm -e emacs" autocompletes to nothing now

which I'm not sure is a problem.

Best,

Carlos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell-alwayshighlight-fix.d
Type: application/octet-stream
Size: 24112 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20130209/ecfa397b/attachment-0001.obj>

Reply | Threaded
Open this post in threaded view
|

spawn command when no completion is available (if alwaysHighlight is True); changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord

Carsten Mattner-2
On Sat, Feb 9, 2013 at 8:13 PM, Carlos L?pez Camey <c.lopez at kmels.net> wrote:

> This small patch addresses
> http://www.haskell.org/pipermail/xmonad/2013-February/013512.html.
>
> The new behaviour also affects users that have alwaysHighlight set to
> False (the default) in the following way:
>
>  - "xterm -e emacs" autocompleted to e.g.
> ["emacs","emacs23","emacs-24.2",..] before (using the last word)
>  - "xterm -e emacs" autocompletes to nothing now
>
> which I'm not sure is a problem.

Tried and it works for me. Thanks Carlos.


Reply | Threaded
Open this post in threaded view
|

spawn command when no completion is available (if alwaysHighlight is True); changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord

Gwern Branwen
On Sat, Feb 9, 2013 at 2:27 PM, Carsten Mattner
<carstenmattner at gmail.com> wrote:

> On Sat, Feb 9, 2013 at 8:13 PM, Carlos L?pez Camey <c.lopez at kmels.net> wrote:
>> This small patch addresses
>> http://www.haskell.org/pipermail/xmonad/2013-February/013512.html.
>>
>> The new behaviour also affects users that have alwaysHighlight set to
>> False (the default) in the following way:
>>
>>  - "xterm -e emacs" autocompleted to e.g.
>> ["emacs","emacs23","emacs-24.2",..] before (using the last word)
>>  - "xterm -e emacs" autocompletes to nothing now
>>
>> which I'm not sure is a problem.
>
> Tried and it works for me. Thanks Carlos.

If no one objects, I will push this in 5 days.

--
gwern
http://www.gwern.net