Giter VIP home page Giter VIP logo

fex.nvim's Introduction

fex.nvim

Neovim file explorer based on ideas from Emacs dired plugin and Vims very own netrw. Basic idea is that listed files and directories should behave like read only vim buffer. Files and directories are displayed by ls command and parsed through ls dired support.

simple

symlinks

Installation

Install with Plug:

Plug '2hdddg/fex.nvim'

Install with Paq:

require('paq')({
    '2hdddg/fex.nvim',
})

Configuration

Configuration is currently optional and only provides option to set parameters to ls command.

require("fex").setup({ls = "-al"})

Default ls listing is based on output with option as set:

ls = "-ahl --group-directories-first --time-style="long-iso"

ls option must contain -l for dired data to become available.

Usage

To start browsing files in directory of current:

require("fex").open()

or Vim command

:Fex

To start browsing a specific direcory:

require("fex").open('/a/specific/directory')

Keybindings

In the file browser the following keymaps are available (currently not configurable):

  • <CR> to step into directory or open file in Fex window
  • v to open preview of directory or file in vertical split window
  • s to open preview of directory or file in split window
  • - to step into parent directory
  • % to create new file in current directory
  • d to create new directory in current directory
  • D to delete file or directory
  • R to rename current directory or file
  • Y yanks full path of the current file or directory
  • C-z switches to a terminal with cwd set to the path of the current directory or file

Future

Currently planned to implement in this order:

  • Support multiple views corresponding to different ls invocations (sorts, attrs)
  • Open file/directory in vsplit/split without attaching preview to it
  • Configurable keymaps
  • Configurable color scheme

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.