![]() ![]() ![]() ![]() The drawback here, compared to the Mac-equivalent programs, is the need for the hotkey to begin with as there doesn’t seem to be a way to make Snippit automatically transform text based on the appearance of the keyword - perhaps in a future version. It is possible to bind the ks command to a global hotkey in KDE or GNOME which would allow for Snippits to be used in any application. The above has only illustrated Snippits’ use for command-line usage. Snippits allows for a lot of extra modifiers to really manipulate text, such as string is located, exactly where you would want the cursor to be to type what to grep for. Using the ks command, the contents are not only outputted, but are also used as input for the next command. The snippit command outputs the contents of the file named in this case ~/.snippits/test. For instance: $ mkdir ~/.snippits $ echo "this is a snippit test" >~/.snippits/test $ snippit test this is a snippit test $ ks test this is a snippit test $ this is a snippit test Snippits are stored in the ~/.snippits/ directory each file is its own snippit. Once this is completed, you can test Snippits. This will install the RASpell gem which is required by the Snippits gem, and then compile and install the Snippits gem. Once this is done, the Snippits gem must be installed and Ruby configured to use Rubygems by modifying the ~/.bashrc startup file: $ echo 'export RUBYOPT="rubygems"' >~/.bashrc & source ~/.bashrc # gem install raspell # gem install snippits ![]() # urpmi ruby-RubyGems ruby-devel aspell-devel aspell-en x11-devel png-devel $ curl -O -L $ tar xvzf xautomation-1.02.tar.gz $ cd xautomation-1.02 $. As a result, the below is somewhat abbreviated you may elect to use sudo (if you have configured it appropriately) or su to the root user when required. Note the commands on a # prompt are executed as root, whereas those with a $ prompt should be executed as a regular user. On Mandriva Linux, because xautomation must be compiled from source, the following is required. On a Debian system, this can be accomplished by executing: # apt-get install ruby ruby1.8-dev rdoc rubygems libruby-extras xautomation xsel aspell libaspell-dev aspell-en build-essential With any distribution, at the very least you will need to install aspell and its development files Ruby and its development files and also whichever package provides Ruby’s gem support. On Mandriva Linux, the package is not available and so must be compiled from source, which is easy enough to accomplish. On Debian and Ubuntu it is easier to install because one of the prerequisite packages, xautomation, is readily available. Snippits is a Ruby program and requires a little bit of effort to install, depending on the Linux distribution in use. The program is called Snippits, and it also expands text based on predefined keywords. There is one program that comes close, but is not as fluid or elegant as the Mac equivalents. On Linux, there is nothing as comprehensive as Typinator or TextExpander on the Mac. These text-expanding tools are a constantly-used time saver. These programs allow you to type a keyword, regardless of the focused application, and have it expand into a custom string, set of text, or image. Perhaps one of my favorite features or tools with the Mac OS X operating system is the ability to use text-expanding programs such as Typinator or TextExpander. The best counterpart he found is a program called Snippits. Vincent Danen admires the Mac text-expanding tools like Typinator or TextExpander and has been looking for a similar tool in Linux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |