Skip to content

FRex/snip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

snip

A script using junegunn/fzf and (optionally) sharkdp/bat to present a list of files from a directory and dump a chosen file to stdout, for purpose of managing small repetable snippets of text or code. If option -w is passed then file is instead copied to current directory using shutil.copy instead of being printed.

Requires (and works on any) Python 3.6 or above, as tested using https://github.com/FRex/anypython, due to usage of f-strings.

Also requires having junegunn/fzf, but sharkdp/bat is optional (cat will be used if it's not available).

About

Script to manage snippets of code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages