Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

snippethold

snippethold is a fast, lightweight, terminal-based snippet manager written in C. It allows you to store, list, retrieve, and delete text snippets directly from your CLI, storing them safely in ~/.config/.snippethold.

Features

  • Isolated Storage: Automatically creates and uses a dedicated directory (~/.config/.snippethold).
  • Simple Interface: Easy-to-remember flags for common snippet management operations.

Installation

Prerequisites:

  • GCC or Clang
  • Make
  • LibSodium

Building and Installing:

  1. Install libsodium for encryption with your packagem manager of choice: sudo pacman -S libsodium
  2. Clone the repository: git clone https://github.com/TechCore3/snippethold.git
  3. Navigate to directory: cd snippethold
  4. Build and install: sudo make install

This builds the binary and places it in /usr/local/bin.

To uninstall: sudo make uninstall

To clean build artifacts: make clean

Usage

snippethold [file] [contents]

Options: -s Store snippet contents into a file -ss Store snippet contents into encrypted file -S Show contents of a stored snippet -Ss Show contents of an encrypted snippet -l List all saved snippet files -r Remove a stored snippet -h, --help Display usage information

Examples

  1. Save a snippet: snippethold <-s|-ss> quicknote "Remember to run updates on server"
  2. List all saved snippets: snippethold -l
  3. Show a snippet's contents: snippethold <-S|-Ss> quicknote
  4. Delete a snippet: snippethold -r quicknote

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages