Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haifengkao/nfasd
fasd for neovim
https://github.com/haifengkao/nfasd
Last synced: 3 months ago
JSON representation
fasd for neovim
- Host: GitHub
- URL: https://github.com/haifengkao/nfasd
- Owner: haifengkao
- Created: 2016-07-15T09:41:21.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T11:50:01.000Z (almost 3 years ago)
- Last Synced: 2024-09-29T01:43:02.763Z (3 months ago)
- Language: Python
- Size: 50.8 KB
- Stars: 33
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
nfasd
=====Autocomplete nvim recent files in command line
Installation
------------
Install the python package.. code:: bash
pip install nfasd
Add the following line in your :code:`~/.bashrc`
.. code:: bash
eval "$(register-python-argcomplete-menu nfasd)"
# use TAB to cycle through all possible matches
# optional but highly recommended
[[ $- = *i* ]] && bind TAB:menu-completeAlternatively, if you use zsh, add the following to :code:`~/.zshrc`
.. code:: bash
eval "$(register-python-argcomplete-menu nfasd)"
# stop shell from beeping for every complete
# optional but highly recommended
setopt NO_LIST_BEEP
For fish shell, you need to install.. code:: bash
pip install argcomplete
register-python-argcomplete --shell fish my-favourite-script.py > ~/.config/fish/my-favourite-script.py.fishConfiguration
-------------Add the following to :code:`~/.bashrc` or :code:`~/.zshrc`
.. code:: bash
alias n='nfasd -e nvim'
alias ny='nfasd -e nyaovim'Then you can press :code:`n myPro`
to get :code:`n ~/myProject``-e` specifies which executable to open the file
If you want to exclude certain file patterns,
use the `--exclude` option, e.g... code:: bash
alias n=`nfasd -e nvim --exclude tmp`
Changelog
-------------
2.0 for nvim 0.6 new shada format1.0 for python3
0.19 for python2
Tips
----
To increase the number of recent files to 1000, add the following line to your `~/.config/nvim/init.vim`.. code:: bash
set shada=!,'1000,<50,s10,h
Special Thanks
--------------
`fasd `_ : the awesome command line tool