subtle » subtle-contrib

Assorted tidbits and projects

Merger » History » Version 1

Version 1/4 - Next ยป - Current version
Anonymous, 02/03/2011 02:22 PM

Merger\015\012\015\012{{>toc}}\015\012\015\012h2. Overview\015\012\015\012Merge tags of current and selected views temporarily.\015\012\015\012{{lightbox(contrib/merger, Merger)}}\015\012\015\012h2. Colors\015\012\015\012|_. Color triplet |_. Meaning |\015\012| Focus | Currently selected view |\015\012| Title | Current view |\015\012| View | Unselected views |\015\012| Urgent | Selected views for merge |\015\012\015\012h2. Keys\015\012\015\012|_. Keys |_. Action |\015\012| Left, Up | Move to left |\015\012| Right, Down | Move to right |\015\012| Escape | Hide/exit merger |\015\012| Space | Select view for merge |\015\012| Return | Merge selected views and exit hide/exit merger |\015\012\015\012h2. Usage\015\012\015\012Either call it like ruby merger.rb from commandline or add following loader and grab to your subtle config.\015\012\015\012
{{hide}}\015\012begin\015\012  require "#{ENV["HOME"]}/path/to/merger.rb"\015\012rescue LoadError => error\015\012  puts error\015\012end\015\012\015\012grab "W-m" do\015\012\015\012end\015\012
\015\012\015\012h2. Configuration\015\012\015\012Per default, the merger uses fixed as font, this can be changed after requiring the merger.rb and before running it for the first time.\015\012\015\012h3. Fonts\015\012\015\012
{{hide}}\015\012begin\015\012  require "#{ENV["HOME"]}/path/to/merger.rb"\015\012\015\012  # Set font\015\012  Subtle::Contrib::Merger.font = "xft:DejaVu Sans Mono:pixelsize=80:antialias=true"\015\012rescue LoadError => error\015\012  puts error\015\012end\015\012