Hi LinuxQuestions,
I'm having problems writing a functional edit prompt. I'm guessing it's just a simple lua syntax problem:
# Purpose: An edit prompt that opens files in a set location using vi.*
*
# Current code:*
*
*-- * awful.key({ modkey }, "e", function ()*
*-- * * * awful.prompt.run({ prompt = "Edit: " }, mypromptbox[mouse.screen].widget,*
*-- * * * * * function (words)*
*-- * * * * * * * sexec("urxvt -e vi /home/lys/docs/", words)*
*-- * * * * * end)*
*-- *end),*
*
# Based off:*
*
* * awful.key({ altkey }, "F3", function ()*
* * * * awful.prompt.run({ prompt = "Dictionary: " }, promptbox[mouse.screen].widget,*
* * * * * * function (words)*
* * * * * * * * sexec("crodict "..words.." | ".."xmessage -timeout 10 -file -")*
* * * * * * end)*
* * end),*
*
# # Src: anrxc's config.
Any help would be appreciated!
EDIT:
I don't know why it inserted all those stars everywhere?
Pasted it from:
http://www.pastey.net/138219