GNOME Bugzilla – Bug 761393
Openning a file in a view should just reopen it and not switch to some other view where the file is already open
Last modified: 2016-02-22 05:15:02 UTC
I have a split view with some/file.c on the left side, and some/other/file.c on the right side. Doing `:e some/file.c` from the right side should just reopen that file in there and not move the cursor to the left view. I (now) know that I can do "ctrl+w v" but the behaviour I describe here is not natural.
Actually that behaviour is even more annoying than just that :) I have: left view | right view --------------------|------------------- some/file.c | some/other/file.c file1.c (hidden) | If I go to the left view and want to see file1.c (using the top search bar) I will end up with: left view | right view --------------------|------------------- file1.c | some/other/file.c some/file.c (hidden)| instead of: left view | right view --------------------|------------------- some/file.c | file1.c file1.c (hidden) | some/other/file.c (hidden)
I certainly find this annoying at times too :)
*** Bug 762345 has been marked as a duplicate of this bug. ***
Created attachment 321805 [details] [review] editor: try harder to open buffers in the last focused stack This also fixes things like "e foo/bar.c" from the command bar to show up in the view that was last focused.
Attachment 321805 [details] pushed as 9fb301c - editor: try harder to open buffers in the last focused stack