Return focus to active view after tool execution
Brought to you by:
emuntyan
Right now, focus is not returned to the active view after a tool is executed. This forces the programmer to manually set the focus to the edit area e.g. by clicking inside it with the mouse or using the appropriate commands from the menus. If the programmer is doing many subsequent small changes and needs to execute a tool immediately after each change to evaluate the result, this becomes irritating quickly and increases the development time.
I modified function moo_command_run [moocommand.c] so that it returns focus to the active document after execution.
I have no previous experience with GTK programming, so please be lenient.
Thanks for a great editor!
Modified to return focus after script execution.
I don't quite understand, where is focus that you need to return it to the editor? It may be by design. For example, if you run a compiler and output goes into the output pane, then focus must stay in that pane, that way you can use keyboard to navigate to compile errors. I simply use keyboard shortcut to return focus to the editor (alt-c). I suppose it may not be convenient in other cases, and I want to understand what those cases are.
Hi Yevgen. Thank you for taking the time to have a look at this. In my particular example, I am coding a data cleanup system in PHP. It consists of multiple, usually small, PHP scripts. It is very typical for me to fireup my editor, fine-tune a couple of parameters, run the script, review its output, fine-tune them again, run the script again, review the output, adjust again and so forth... So my hand is all the time pressing Ctrl-1 (which is the hotkey I have for passing the script through PHP interpreter).
I understand what you are saying about compiler and error messages. Perhaps then this could be added as an option (i.e. add a checkbox somewhere to automatically return focus).
Thanks for taking the time for this.
Take care.
An option makes sense to me. I wonder if it should be on by default.
I think it depends how often people use the editor in the way I do vs the way you are mentioning. I can't really estimate :s
I think other site proprietors should take this website as an model, very clean and magnificent user friendly style and design, let alone the content. You are an expert in this topic!
wow gold http://www.wowgolds.ca