I just noticed a little quirk with the "Follow path of current file" option for VTE.
Consider this... 1. Open a file in your $HOME directory. 2. Open another file from some other directory. 3. In vte, type "echo" followed by a space, but don't press return. 4. Click the on the tab of the first file you opened.
The resulting command is "echo cd /home/username"
Now imagine if you had typed "rm -rf " instead of "echo "
Yikes!
Maybe it would be safer to only issue the cd command if there is no other text on the command line. I skimmed through the vte headers and the only thing I see that might work is to call vte_terminal_get_cursor_position() first, and check to make sure the column value is zero.
- Jeff