Coder Social home page Coder Social logo

ripxorip / bolt.nvim Goto Github PK

View Code? Open in Web Editor NEW
108.0 7.0 3.0 499 KB

⚡ Ultrafast multi-pane file manager for Neovim with fuzzy matching

License: MIT License

Python 97.04% Vim Script 2.96%
neovim bolt python finder commander filter-as-you-type vim vim-plugin neovim-plugin fuzzy-search fuzzy-matching dual parser dual-pane nvim ripgrep ripgrep-frontend

bolt.nvim's Introduction

⚡ bolt.nvim

⚡ Filter-as-you-type file manager for Neovim with emphasis on speed and visibility

"Total Commander inspired file manager for the 21st century"

Gitter Chat

Demo

Navigation

Example Highlight

The filter is automatically updated as you type , no extra keystrokes needed.

Searching

Example Highlight

Quicly perform a search in the active directory using ripgrep. If desired, expand the results to see which lines that matches your pattern. For convenience, simply start typing to filter your search results.

Dual-pane

Example Highlight

Unleash the commander using the multi-pane mode.

Notice

The development of Bolt.nvim is still in a very early phase, so bugs are expected. If you find something that needs fixing please create an issue.

Requirements

bolt.nvim requires Neovim with Python3. tIf :echo has("python3") returns 1, then you have python 3 support; otherwise, see below.

You can enable the Neovim Python3 interface with pip:

pip3 install neovim

Installation

Note: bolt.nvim requires Neovim(latest is recommended) with Python3 enabled. See requirements if you aren't sure whether you have this.

For vim-plug:

call plug#begin()

Plug 'ripxorip/bolt.nvim', { 'do': ':UpdateRemotePlugins' }

call plug#end()

Usage

Open Bolt

Command Action
:Bolt Open up the bolt explorer
:BoltCwd Open up the bolt explorer in cwd

Keybindings

Command Action
enter Open the selected file/cd to the selected folder
backspace Clear a character from the filter / go to parent directory if filter is cleared
Ctrl-j/k Move the selection one up/down
Ctrl-d/u Page up / page down the selection
Ctrl-w Clear the filter
a-z Filter as you type
space Select
Ctrl-c Copy selection
Ctrl-v Paste selection

For actions, refer to the top menu of the explorer.

Self-Promotion

Like bolt.nvim? Make sure to follow the repository and why not leave a star.

Thanks

Thanks for trying out this plugin, any feedback/contrubution would be much appreciated as this is my first take on writing plugins for Neovim. Additionally, I would like to express my cincere gratitude to Per-Åke Bligård and David Johansson for introducing me to the wonderful world of unorthodox file managers 🍻

Contributors

  • Philip Karlsson
  • David Johansson

License

MIT License

Copyright (c) 2018 Philip Karlsson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

bolt.nvim's People

Contributors

ripxorip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bolt.nvim's Issues

Split preview for search results

When the search results are presented there shall be the possibility to make a split and preview each hit when moving the selection up & down.

Writing '+' in the input form causes an error.

Something goes south when accidentally entering '+' or presumably other regex characters, this might be because of how strings are managed on the python side. Could there be some way to escapte these characters before filtering?

Down button not working in :Tcd

Fel upptäcktes vid bearbetning av function remote#define#CommandBootstrap[5]..remote#define#request:
rad 2:
error caught in request handler '/Users/david/dev/VimPlugs/bolt.nvim/rplugin/python3/vim_tc_explorer:command:TcExpDown
[[], [1, 1]]':
Traceback (most recent call last):
File "/Users/david/dev/VimPlugs/bolt.nvim/rplugin/python3/vim_tc_explorer/init.py", line 35, in tc_down
self.TcExplorer.tc_down(args, range)
File "/Users/david/dev/VimPlugs/bolt.nvim/rplugin/python3/vim_tc_explorer/vim_tc_explorer.py", line 216, in tc_down
exp.window.cursor = (exp.selected + exp.headerLength, 0)
AttributeError: 'explorer' object has no attribute 'window'

To reproduce

  1. nvim
  2. :Tcd
  3. Press key Down

Make it possible to copy/mv/etc. between two panes.

These features are requested in order to have any use of the dual pane mode. Currently the commands, BoltCopy etc. only supports the dest as argument. One idea is to create additional commands e.g. BoltCopyDual to automatically get the dest from the neighboring pane.

NvimError: Cursor position outside buffer

  1. Installed via Plug 'ripxorip/bolt.nvim', { 'do': ':UpdateRemotePlugins' }
  2. NVIM v0.4.2
  3. Getting the following error upon typing :Bolt:
Error detected while processing function remote#define#request:
line    2:
Error invoking '~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChangedI:TC_Input' on
 channel 3 (python3-rplugin-host):
error caught in request handler '~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer:autocmd:TextChan
gedI:TC_Input []':
Traceback (most recent call last):
  File "~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer/__init__.py", line 128, in insert_changed

    self.TcExplorer.handle_input()
  File "~/.local/share/nvim/plugged/bolt.nvim/rplugin/python3/vim_tc_explorer/vim_tc_explorer.py", line 554, in handle_
input
    exp.window.cursor = (exp.selected + exp.headerLength, 0)
  File "/usr/lib/python3.7/site-packages/pynvim/api/window.py", line 27, in cursor
    return self.request('nvim_win_set_cursor', pos)
  File "/usr/lib/python3.7/site-packages/pynvim/api/common.py", line 51, in request
    return self._session.request(name, self, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
    raise self.error_wrapper(err)
pynvim.api.nvim.NvimError: b'Cursor position outside buffer'
Press ENTER or type command to continue

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.