Commit Graph

16 Commits

Author SHA1 Message Date
Jorge Morante ec2d573757 add tmux-printer as submodule 2017-04-23 19:04:55 +02:00
Jorge Morante 42b4943eca fix compact hints 2017-04-23 19:04:55 +02:00
Jorge Morante 759fc183c7 load configuration with tmux setenv 2017-04-23 19:04:55 +02:00
Jorge Morante 844d6b8315 use tmux status bar format 2017-04-23 19:04:55 +02:00
Jorge Morante b582a44955 gawk all the things 2017-04-23 19:04:55 +02:00
Jorge Morante 8ce451da4e adding color configuration env variables 2017-04-23 19:04:47 +02:00
Jacob Keller fe35e519ea support variable length sha1 commit ids
The sha1 commit ids displayed by git may range in size and are not strictly 7 digits or 40 digits. In practice, the old default was something like 7, and that was enough to uniquely distinguish the commit. However, some repositories (Upstream Linux kernel) now use 12 as the default.

When we support intervals, use them to specify the full range to make the hint grab all available characters.
2017-02-06 11:22:22 -08:00
Suraj N. Kurapati 208b63acc7 fingers-pattern-N settings with N > 9 were ignored
This patch fixes the regular expression that parses `fingers-pattern-N`
settings, allowing the `N` number to contain either one or more digits.

Before this patch:

    $ (echo '@fingers-pattern-0 "git rebase --(abort|continue)"'; echo '@fingers-pattern-1 "yolo"'; echo '@fingers-pattern-50 "whatever"') | grep '^@fingers-pattern' | sed 's/^@fingers-pattern-[0-9] "\(.*\)"$/(\1)/'
    (git rebase --(abort|continue))
    (yolo)
    @fingers-pattern-50 "whatever"

After this patch:

    $ (echo '@fingers-pattern-0 "git rebase --(abort|continue)"'; echo '@fingers-pattern-1 "yolo"'; echo '@fingers-pattern-50 "whatever"') | sed -n 's/^@fingers-pattern-[0-9]\{1,\} "\(.*\)"$/(\1)/p'
    (git rebase --(abort|continue))
    (yolo)
    (whatever)
2016-10-21 13:28:24 -07:00
Jorge Morante 3abca2a0ff read default compact state from configuration 2016-10-17 23:15:06 +02:00
Jorge Morante 2c4140e47a fix filepath regexp for OSX, and interval support check 2016-08-23 08:44:30 +02:00
Jorge Morante e8c1e59e29 Improve performance with single-pass awk implementation 2016-08-21 17:57:09 +02:00
Jorge Morante 754a8ec7da OSX compatibility and fixes 2016-05-02 21:15:29 +02:00
Jorge Morante d5ab288312 fix predefined searches 2016-05-01 22:01:31 +02:00
Jorge Morante 5210e64836 adding more predefined patterns 2016-05-01 19:54:20 +02:00
Jorge Morante 8fb03380d5 mini cleanup 2016-05-01 19:01:28 +02:00
Jorge Morante f3d392f63d user configurable patterns 2016-04-30 00:58:58 +02:00