Skip to content

cyberbua/neoranger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Neoranger

Introduction

Neoranger is a simple ranger wrapper script for neovim. It's inspired by Drew Neil's thoughs on project drawers. It's like vinegar or filebeagle, but with ranger as the interface.

Neoranger opens a terminal with ranger in the current window. It sets ranger's viewmode to multipane, making it easy to use in narrow windows. You can select and open multiple files.

The wrapper script ensures that split windows don't break when the terminal window is closed, by restoring the previous buffer in the current window.

Note that neoranger replaces netrw.

Usage

Neoranger provides two commands, :Ranger and :RangerCurrentFile.

:Ranger accepts an optional directory and file argument. If no arguments are provided it opens ranger in the current working directory.

:RangerCurrentFile opens ranger and selects the currently open file.

Mappings

Neoranger doesn't add any mappings by default. The following mappings makes neoranger behave like vinegar or filebeagle:

" Open ranger at current file with "-"
nnoremap <silent> - :RangerCurrentFile<CR>

" Open ranger in current working directory
nnoremap <silent> <Leader>r :Ranger<CR>

About

Simple ranger wrapper for neovim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%