Skip to content

Feature request: preview buffers #66

@tandrewnichols

Description

@tandrewnichols

I can't find a buffer plugin that does this, so I'm hoping this is something bufexplorer could incorporate (probably behind an option). Say I open bufexplorer in a vertical split (which is what I usually do). As I move over buffers (with j and k, for example), I would like the buffer under the cursor to show up in the left pane (a "preview" if you will), and then when I press Enter, bufexplorer closes leaving me in the selected buffer (which is basically the current functionality for Enter).

Alternatively, if there's a way to define mappings inside a bufexplorer window, possibly I could make this work on my own.

My reasoning for this is that a list of file names is difficult to grok, and if you have multiple files named the same thing (or almost the same thing), it takes me longer than I'd like to locate the buffer I want.

I realize this is a complicated feature request, as you have to handle edge cases like "What if the user hits t instead of Enter?" and "What if the user closes bufexplorer without selecting a buffer? Should it revert to the buffer that was open when bufexplorer was invoked?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions