Skip to content

Hijacking netrw mode: should not limited to fixed vsplit layout #121

@wookayin

Description

@wookayin

This is similar to nvim-tree/nvim-tree.lua#926.

When NeoTree is working as a standalone mode or hijacking netrw, it should work as if it were a normal directory buffer. However, it only works as a vertical splitted window on the left.

To Reproduce: run :split .

Expected behavior: This should open the directory buffer in a non-surprising way: open the directory window in the below or as a horizontally-split window.
Current behavior: It opens the nvim-tree window on the left.

Currently, M.hijack_netrw is doing the minimal implementation -- simply killing the netrw buffer and navigating neotree to the opened directory path. It instead should open in the window where netrw was at.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions