The Snippits project is a Ruby software that assists in typing text automatically. Its main function is to eliminate the need for manual typing, allowing for faster, more efficient work.
The Snippits project comprises two programs that work together seamlessly: snippit and ruby snippit. The snippit program searches the snippits directory located by default in $HOME/.snippits directory and provides a user-friendly menu to select a desired snippit. Pressing escape will execute the embedded 'ruby' snippit, which displays a pop-up dialog for users to enter Ruby code. Alternatively, users can pass in the name of the snippit file to execute it and generate an output without any dialog.
To use snippit, the 'erb' embedded ruby feature needs to be installed. Users can refer to distribution documentation for installation instructions.
Snippit files are small files with a simple syntax. The file name is the parameter passed to the snippit command or can be used as a keyword for selection later. The contents are parsed as follows: the first line becomes the title in the selection dialog and the rest is plain text output as-is. Users can opt to embed Ruby code using '<% %>' tags. For example, '<% print 1+1 %>' would display the output of 1+1, evaluated using Ruby.
In this release, Snippits received some bug fixes that increase speed, fixed issues with cursor positioning code, debug mode, decrypting GPG-encrypted files, outputting GPG-encrypted files in a non-interactive session, and corrected RAspell dependencies. The update also made crucial system snippits more accessible and added a clearer README.txt file with instructions for installing eRB on Debian/Ubuntu.
Version 0.5.1: N/A