4 ms·
An alternative workflow I use is the dired-view-file bound to 'v' to have a read-only buffer for the file which you can scroll through with <space> and other su
by skydhash 1y ago
An alternative workflow I use is the dired-view-file bound to 'v' to have a read-only buffer for the file which you can scroll through with <space> and other such keys. Then you can use 'q' to close the buffer and 'e' to edit it.
- ww520 1y agoYes, that works but the view window takes up the whole frame. I want the dired window remains and the cursor/focus to remain in the dired window so that I can go down the file list and see the file content on the other window. Ctrl-n and ctrl-o are all I need to do.
- skydhash 1y agoI got you. I like to be focused on a single thing so whatever is in front of me is relevant to the current task: Either selecting files or viewing them. So I've never been a fan of the file explorer windows/dock in most editors and IDEs. In Vim, I use vinegar, which bind the minus key to display the file's directory in netrw and in netrw, go up.
- ww520 1y agoYes, I like to focus on one thing, too. That's why I usually only have one window and one buffer open to work on. The list-detail split view mode is when I want to quickly browse the files in a directory, like when I'm looking into a unfamiliar project.