
On Wednesday 01 August 2007 13:26:49 Andrea Rossato wrote:
Hi,
what about a prompt? A general one, to be use to run internal xmonad command, to run shell commands, or to run ssh, etc...
With completions, possibly.
This what I'm working to. Some previous Ion3 users will find it similar to some of their memories.
It is not finished yet, this is why I'm not sending it as a patch, but I'm almost there. I did not think it was going to take such a long time - 3 days now (well, I'm not only coding, I'm also trying to enjoy my vacation. Lake, mountains, etc....-)
But you can have an idea, and hopefully give suggestions too: save the attached file in XMonadContrib as Prompt.hs.
Import it from Config.hs and add some key bindings to lunch the prompts. For instance:
, ((modMask .|. controlMask, xK_x), xmonadPrompt defaultPromptConfig) , ((modMask .|. controlMask.|. shiftMask, xK_x), shellPrompt defaultPromptConfig)
So far only a shell prompt and an internal commands prompt (xmonadPrompt) are provided (and only the first one with - still unusable - completions).
Suggestions, patches, good wishes are welcome.
Andrea
PS: the guys at suckless dot something say that dmenu is less then 500 lines of code. I'm still below 500 too, with all the extra features. Some stuff needs to be added, but there is a lot of stuff we could get rid of. The code could not be so verbose, but that's one of my problems. Not Haskell's.
I'm excited about this, I'd love to have a prompt with completion that is a bit more extensive than dmenu's. My number one feature request: extensible completion support. This is an interesting problem to consider, which design is best? Infinite, lazily unfolded tries? Eagerly awaiting your patch :), Spencer Janssen