Metadata-Version: 2.1
Name: nfasd
Version: 1.1
Summary: UNKNOWN
Home-page: http://github.com/haifengkao/nfasd
Author: Hai Feng Kao
Author-email: haifeng@cocoaspice.in
License: MIT
Keywords: fasd neovim nvim nyaovim jumplist
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Environment :: MacOS X
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Requires-Dist: argcomplete
Requires-Dist: msgpack-python

nfasd
=====

Autocomplete nvim recent files in command line

Installation
------------
Install the python package
:: 
pip install nfasd

Add the following line in your :code:`~/.bashrc`
::
eval "$(register-python-argcomplete-menu nfasd)"

# use TAB to cycle through all possible matches
# optional but highly recommended
[[ $- = *i* ]] && bind TAB:menu-complete    

Alternatively, if you use zsh, add the following to :code:`~/.zshrc`
::
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
::
pip install argcomplete

register-python-argcomplete --shell fish my-favourite-script.py > ~/.config/fish/my-favourite-script.py.fish
Configuration
-------------

Add the following to :code:`~/.bashrc` or :code:`~/.zshrc`
:: 
alias n='nfasd -e nvim'
alias ny='nfasd -e nyaovim'

Then you can press :code:`n myPro<tab>`
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.
::
alias n=`nfasd -e nvim --exclude tmp`

Changelog
-------------
1.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`
::
set shada=!,'1000,<50,s10,h

Special Thanks
--------------
`fasd <https://github.com/clvv/fasd>`_ : the awesome command line tool


