Skip to content

floating windows: Ex commands (:fclose, :fedit, ... or :float) #9663

@justinmk

Description

@justinmk

#6619 added API support for floating windows.

Next step is to add some "chrome" for this.

  • #25561 Some have requested an easier way to close the top (or all) floating windows, without navigating-to the window to :close it. We could introduce the "f" prefix similar to "p" family of commands (:pclose, :ptag).
    • :fclose closes the highest z-index, and :[count]fclose closes window at count z-index.
    • :fclose! closes all floats.
  • Or a :float modifier? Analogous to :vertical, :tab, etc. #12050

Instead of introducing analogs for :pedit, :ptag, etc., there could be a global option that configures the "preview window" to be a floating window (with default position, dimensions, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreNvim core functionality or code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions