codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Prompt.Workspace wrong completion #552

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This happens with workspaces with names containing spaces and is related to the 
default implementation for nextCompletion and commandToComplete (class XPrompt) 
which shouldn't be used here.

1. type the name of a workspace which contains spaces on a workspace prompt;
2. hit tab;
3. workspaces whose name start with the last word on prompt are shown.

The whole prompt should be used for completion.

I made a patch long ago but didn't find a way to send it. It is attached.

I don't think XMonad will ever prompt for a list of workspace names separated 
by spaces.

Original issue reported on code.google.com by fistonbe...@gmail.com on 23 Jul 2013 at 7:56

Attachments:

GoogleCodeExporter commented 8 years ago
AFAIK there is a similar issue with Prompt.RunOrRaise and Prompt.LaunchApp.

However, Prompt.Shell escapes the spaces correctly, perhaps the code used in 
that module should be standardized.

Original comment by ondrej.g...@gmail.com on 25 Dec 2013 at 9:48