andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Closing a file when in "opened file" moves the focus to the editor. #33

Closed epandurski closed 12 years ago

epandurski commented 12 years ago

The problem is: I want to close several files, so I go to "open files", I move the marker to the file which I want to close, I hit "Ctrl+W" -- the file is closed. Then I want to go to the next file in my list, that needs to be closed... but the editor got the focus, so I need to press "Alt+O" again, which is really inconvenient when I have to close 10-20 files.

It seems to me that after pressing "Ctrl+W" the focus should remain in "open files" window.

wayoda commented 12 years ago

Enki uses the Ctrl+PgUp and Ctrl+PgDown keys to go to the previous or next file from the list of "Open Files". You don't really need the Alt+O command at all.

The Eclipse-IDE uses the same commands. I learned to use them in no time.

epandurski commented 12 years ago

I figured out this after I had filled the issue.

Yet I think consistency requires "Ctrl+W" to do not change the focus. For example "Ctrl+S" in the "open files" does not change the focus. It really seems that at the current state Enki's "open files"-widget does not do much more than showing the list of open files while you are doing "Ctrl+PgUp/Down". But in the future, I am sure a lot of extensions will use "open files" for all kinds of tasks, so I think it is important to have consistent behavior here.

andreikop commented 12 years ago

I agree about consistency.

Now, Ctrl+W, and even Ctrl+PgUp and Ctrl+PgDown doesn't move focus to editor.

Let's test it and see, if it is convenient