Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
cb2ab56c4d8d23500de50579f301904998b979c6
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 2a692d2cf3e7 · Showing diff
- Parent 2: 09c499626a65 · Diff against parent 2
bugabingas dorkfiles
cb2ab56c4d8d23500de50579f301904998b979c6
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+52 / −62 text lines
+38 / −32 text lines
String source = null; String target = null; for (String line : lines) { if (line.isBlank()) continue; if (source == null) source = line; else target = line; if (target != null) { link(root, source, target); source = null; target = null; } } for_each_mapping(lines, (source, target) -> link(root, source, target)); // TODO extract parse pattern into method String source = null; String target = null; for (String line : lines) { if (line.isBlank()) continue; if (source == null) source = line; else target = line; if (target != null) { delete(root, source, target); source = null; target = null; } } for_each_mapping(lines, (source, target) -> delete(root, source, target)); static interface ThrowUp<A, B> { default Throwable gurgh(A a, B b) { try { apply(a, b); return null; } catch (Throwable vomit) { return vomit; } } void apply(A a, B b) throws Throwable; } static void for_each_mapping(List<String> lines, ThrowUp<String, String> block) throws Throwable { String source = null; String target = null; for (String line : lines) { if (line.isBlank()) continue; if (source == null) source = line; else target = line; if (target != null) { var vomit = block.gurgh(source, target); if (vomit != null) throw vomit; source = null; target = null; } } }+1 / −26 text lines
[activate_pane_mode] = { { key = 'LeftArrow', action = wez.action.ActivatePaneDirection 'Left' }, { key = 'h', action = wez.action.ActivatePaneDirection 'Left' }, { key = 'RightArrow', action = wez.action.ActivatePaneDirection 'Right' }, { key = 'l', action = wez.action.ActivatePaneDirection 'Right' }, { key = 'UpArrow', action = wez.action.ActivatePaneDirection 'Up' }, { key = 'k', action = wez.action.ActivatePaneDirection 'Up' }, { key = 'DownArrow', action = wez.action.ActivatePaneDirection 'Down' }, { key = 'j', action = wez.action.ActivatePaneDirection 'Down' }, -- Cancel the mode { key = 'Escape', action = 'PopKeyTable' }, { key = 'Enter', action = 'PopKeyTable' }, },+5 / −3 text lines
+8 / −1 text lines