Skip to content

Feature: Open file while retaining focus / Preview files #28

@jeetsukumaran

Description

@jeetsukumaran

(1) I would like to open Dirbuf, find a file, open it in a new vertical split, and close Dirbuf (restoring the previous buffer that was in the window that Dirbuf was rendered in).

In other words, I would like Dirbuf to open a file in a new split, restore the previous buffer that was in its own window, and then delete itself.

If I try require('dirbuf').enter('vsplit'), it does this, but then leaves Dirbuf in open in the original window. I then have to navigate back to the original window and either hit <C-O> or quit it myself. If I accidentally hit :bwipe, then I lose the split that I wanted open (had the buffer view that I was using before I launched dirbuf).

(2) Extension of this: I would like to select a file in Dirbuf, and open it in a new split (vertical or otherwise) in the background (i.e., not just keeping Dirbuf open, but also retaining focus on Dirbuf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions