Am 26.10.2004 um 11:28 schrieb Timothy Martens:
I mapped it to a key and it moves the selected text/line to "done.txt" Except the task_text.gsub!("\[ \] ","[X] ") stuff doesn't seem to be working.
In Ruby 1.8 this should be
task_text.gsub(/[\s*?]/, '[X]')
The left argument is a RegEx object, not a string.