A simple snippet manager.
bat, fzf, and xsel are required. Then execute the following commands:
$ git clone https://github.com/tm99hjkl/idi
$ cd idi
$ make installTo add a snippet, run like idi add path/to/foo.c.
It will be added in ~/.idi/c/foo.c.
To create a new snippet, run idi new or idi new foo.c.
(To run this command, install the helix editor or rewrite the EDITOR variable in idi.sh and run make install again.)
To edit an existing snippet (or snippets), run idi edit foo.c.
To search a snippet, run idi or idi search.
Then select the path and type enter to copy the contents (full path if not text) of the file to the clipboard.