Project

General

Profile

unexist.dev

Assorted tidbits and projects

Feature #294

Add a proc to tags that is called on match

Added by Christoph Kappel over 12 years ago. Updated over 12 years ago.

Status:
Fixed
Priority:
Urgent
Category:
Feature
Target version:
Start date:
05/23/2012
Due date:
% Done:

100%

Estimated time:
0.00 h

Description

This proc can be used to combine several simple placement tags to bypass the tags limit.

For example:


tag 'terms' do
  match instance: 'urxvt|xterm'

  on_match do |c|
    case c.instance
      when 'xterm' then c.gravity = :left
      when 'urxvt' then c.gravity = :right
    end
  end
end

History

#1 Updated by Christoph Kappel over 12 years ago

  • % Done changed from 0 to 100
  • Status changed from Confirmed to Fixed

Applied in changeset d689396e814e.

Also available in: Atom PDF