Public: anyone can read this; the crew can change it.

Say the screen and the fix when a terminal r binding is unlisted #17174

opened this

Merged 45h 36m ago, live in production

r-own → main 0 commits

  • Merged. r-own was merged into main as bbfa7da.

Review

Sign in to review this change.
1 file changed +5 −2
test/keymap-terminal.test.ts +5 −2
@@ -72,8 +72,11 @@ test("no terminal screen reads itself again on r: R does, from the map", () => {
7272
7373 test("every screen that binds r for its own verb is listed with what it does, and the list holds only screens that still do", () => {
7474 const sources = terminalSources();
75 const binding = Object.keys(sources).filter((p) => [...sources[p]!.matchAll(R_BINDING)].length > 0).sort();
76 expect(binding).toEqual(Object.keys(OWN_R).sort());
75 const binding = Object.keys(sources).filter((p) => [...sources[p]!.matchAll(R_BINDING)].length > 0);
76 // Said so a pull author fixes it from the check alone.
77 const unlisted = binding.filter((p) => !(p in OWN_R)).map((p) => `${p} binds r: add it to OWN_R in test/keymap-terminal.test.ts with what r does there, or bind keyOf("reread") (R) if r reads the screen again`);
78 const gone = Object.keys(OWN_R).filter((p) => !binding.includes(p)).map((p) => `${p} no longer binds r: remove it from OWN_R in test/keymap-terminal.test.ts`);
79 expect([...unlisted, ...gone]).toEqual([]);
7780 });
7881
7982 test("the scan catches the shapes a refresh on r takes", () => {

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs