Good evening tmuxers. In my .tmux.conf file I have a line like this

bind e command-prompt -I "%d/%m/%g %H:%M: " -p "#" 'run-shell "echo %1 >> 
$NOTE; tmux display Done."'

This basically prompts me for a string and appends it to a text file (the $NOTE
environment variable).

It works, but not with every input; example:

    > test "

breaks it with error

Invalid or unknown command: run-shell "echo 03/04/13 19:39: jljlkj;" >> $NOTE; 
tmux display Done."

Of course, the " messes the run-tmux part of the script.

I don't know how to handle this. I would like to 'sanitise' the output of
'command-prompt' in some way, but don't know how.

Do you know wheter there's a way to do it? Or a similar way/tool to obtain what
I was doing in the first place ('record' notes on a txt file)?

Thanks in advance

                                            -Franco

------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to