Skip to content

Showcase

TheBlob42 edited this page Apr 29, 2022 · 2 revisions

The showcase GIFs have been created using peek and screenkey.

The fancy notifications are enabled by nvim-notify and need no further configuration of DREX

All examples use the default keybindings (see :help drex-default-keybindings)

Basic Navigation

  • move up and down with k and j
  • expand and collapse directories with l and h
  • open a file
    • in the same window with l
    • in a split with CTRL-x
    • in a vertical split with CTRL-v
    • in a new tab with CTRL-t

basic navigation example

Project Drawer

The drawer will always be opened in the current working directory

  • open drawer with :DrexDrawerOpen
  • close drawer with :DrexDrawerClose
  • toggle drawer with :DrexDrawerToggle
  • jump to the current file in the drawer with :DrexDrawerFindFileAndFocus

drawer commands example

  • files from the drawer are opened in the adjacent window
  • in case of multiple adjacent windows the window picker is used

drawer open files example

File Actions

  • create a new file (including parent directories) with a
  • rename a file with r
  • delete a file with d

file actions example

Clipboard

  • mark elements with M
  • unmark elements with u
  • toggle elements with m
  • check and edit clipboard content with cs
  • copy files with p
  • move files with P
  • clear clipboard with cc

clipboard example

Multi Rename

  • multi rename visual selection with r (clipboard with R)

multi rename example

Mark multiple elements

Easily mark multiple elements which are visible in the current DREX buffer using :g/<pattern>/DrexMark (see :help :g). Afterwards you can easily operate on the marked elements, to for example delete (D) or rename (R) them

For example to delete all yaml files in the current DREX buffer:

mark multiple elements example

Clone this wiki locally