gerty icon indicating copy to clipboard operation
gerty copied to clipboard

feature request: generic exclusion regex for plugins

Open cbueche opened this issue 12 years ago • 1 comments

I see the Gerty.CiscoIOS, Gerty.CiscoLike having the regex exclusion "ntp-clock-period.regexp". However, as far as I understand, there is no facility to exclude strings from other commands. I tried this :

  ios.sh-version.command = show version
  ios.sh-version.exclude = uptime
  uptime.regexp = uptime\s+is

but gerty doesn't use my regex and doesn't filter out my "uptime" string.

Feature request : a plugin having the possibility of post-processing output of previous commands would be extremely useful.

  • simple cases : do a regex like above
  • extreme cases, forking an external shell command used as filter.

cbueche avatar Mar 07 '12 13:03 cbueche

please test: https://github.com/ssinyagin/gerty/commit/595623c348871ae18c4144a11a305f915e9334ba

ssinyagin avatar Mar 22 '13 22:03 ssinyagin