Interesting framework. I like the fairly declarative style. The approach to writing terminal applications which interact with shell utilities seems a lot like certain Emacs applications, such as dired.
Emacs Lisp is not a declarative language, of course, but this kind of declarative logic - regular expressions which parse shell command output and apply hidden text properties or keybindings - is common in Emacs. dired does it, as does magit, and all modes based on comint, as well as just normal M-x compile.
I'm trying the example from the Readme, but running:
$ rat --mode files --cmd 'ls -al'
..doesn't actually seem to be reading my .ratrc file. The command behaves the same whether I have a .ratrc or not. Is anybody else able to hit enter to preview a file? I'm on a Mac.
13 comments
[ 10.7 ms ] story [ 942 ms ] threadA text structure, some regex, some keybindings
http://l7.alamy.com/zooms/67715421b1524d9eba22ebc217d99967/f...