Menu

#5 Return focus to active view after tool execution

open-accepted
nobody
None
5
2011-12-05
2011-04-17
Anonymous
No

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!

Discussion

  • Nobody/Anonymous

    Modified to return focus after script execution.

     
  • Yevgen Muntyan

    Yevgen Muntyan - 2011-04-17

    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.

     
  • Christos Evaggelou

    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.

     
  • Yevgen Muntyan

    Yevgen Muntyan - 2011-04-21

    An option makes sense to me. I wonder if it should be on by default.

     
  • Yevgen Muntyan

    Yevgen Muntyan - 2011-04-21
    • status: open --> open-accepted
     
  • Christos Evaggelou

    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

     
  • Yevgen Muntyan

    Yevgen Muntyan - 2011-12-05
    • assigned_to: emuntyan --> nobody
    • labels: 851840 -->
     
  • Nobody/Anonymous

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.