/dual-pane.xplr

Implements support for dual-pane navigation into xplr

Primary LanguageLuaMIT LicenseMIT

dual-pane82c66cadbbfcf1fe.gif

This plugin implements support for dual-pane navigation into xplr.

Installation

Install manually

  • Add the following line in ~/.config/xplr/init.lua

    local home = os.getenv("HOME")
    package.path = home
    .. "/.config/xplr/plugins/?/init.lua;"
    .. home
    .. "/.config/xplr/plugins/?.lua;"
    .. package.path
  • Clone the plugin

    mkdir -p ~/.config/xplr/plugins
    
    git clone https://github.com/sayanarijit/dual-pane.xplr ~/.config/xplr/plugins/dual-pane
  • Require the module in ~/.config/xplr/init.lua

    require("dual-pane").setup()
    
    -- Or
    
    require("dual-pane").setup{
      active_pane_width = { Percentage = 70 },
      inactive_pane_width = { Percentage = 30 },
    }
    

Usage

Press ctrl-w and then h / ctrl-h or left / ctrl-left to activate the left pane.

Press ctrl-w and then l / ctrl-l or right / ctrl-right to activate the right pane.

Press ctrl-w and then w / ctrl-w to toggle active pane.

Press ctrl-w and then q / ctrl-q to quit active pane.

Features

  • Retains focus, sorters & filters.
  • Shares selection.

Also See