Skip to content

Pick window #1839

Closed
Closed

Description

@chgara

Description

When splitting window into half or more and I select a new file to open it pop ups: "Pick window:" , I saw in the that can not be automated how the window is picked.

So if I have two windows | A | B | and I am in B and open nvim-tree I want to open it on B automatically like nerd-tree does. But config does not allow it.

Neovim version

NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

Manjaro latest stable

nvim-tree version

29788cc

Minimal config

No config need, default one

Steps to reproduce

  1. Open file
  2. Split and open another, so now you have tab | A | B |
  3. Open nvim-tree and select a file, it will ask

Expected behavior

No response

Actual behavior

No response

Activity

  1. alex-courtis commented on Dec 18, 2022

    @alex-courtis
    Member

    This is not a bug. Please seek first to understand.

    Disabling :help nvim-tree.actions.open_file.window_picker.enable should result in you desired behaviour.

    See :help nvim-tree.actions.open_file.window_picker.picker. This allows you to customise your window selection. Here's an example of a custom function: #1782 (comment)

    Moving to discussion.

  2. locked and limited conversation to collaborators on Dec 18, 2022
  3. converted this issue into a discussion #1840 on Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions