"""Authored training/calibration families for the additional sixteen intents. Labels describe the fixed operation, not a free-form Lisp expression. Page-down English maps to scroll-up-command; page-up maps to scroll-down-command. NAME is one separately parsed literal for a file path or forward search text. """ TRAINING_FAMILIES = { "previous-window": ( "select the previous window", "focus the previous pane", "move to the previous window", "switch to the previous window", "switch to the previous pane", "go to the previous window", "go to the previous pane", "select the preceding window", "focus the preceding pane", "activate the previous window", "activate the previous pane", "move focus to the previous window", "move focus to the preceding pane", "move the cursor to the previous window", "cycle to the previous window", "cycle backward through the windows", "cycle back one pane", "go back one window", "step back to the previous pane", "change focus to the previous window", "change the active window to the previous one", "choose the previous window", "choose the preceding pane", "make the previous pane active", "bring the previous window into focus", "give the previous pane focus", "previous window", "previous pane", ), "delete-window": ( "close this window", "close the current window", "close the current pane", "close the active pane", "close the selected window", "delete this window", "delete the current window", "delete the active window", "delete the selected pane", "remove this pane", "remove the current window", "remove the active pane", "dismiss this window", "dismiss the current pane", "hide this window", "hide the current pane", "get rid of this pane", "get rid of the active window", "close just this pane", "delete only the selected window", "remove only this pane", "close this pane leaving the others open", "delete the current window keeping the other windows", "remove the pane that has focus", "close the window with focus", "dismiss the focused pane", "remove the currently selected window", "close my current window", ), "save-buffer": ( "save the buffer", "save this buffer", "save the current buffer", "save the active buffer", "save the selected buffer", "save my buffer", "save the current file", "save this file", "save the active file", "save my changes", "save the changes in this buffer", "save the edits to the current file", "save this document", "save the current document", "write this buffer to disk", "write the current buffer to disk", "write out this file", "write the modified buffer to its file", "persist the current buffer", "persist my edits", "store the changes to this file", "store this buffer on disk", "commit the edits to the current file on disk", "save the buffer contents to its file", "update this file on disk", "flush this buffer to disk", "save", "save buffer", ), "undo-only": ( "undo", "undo once", "undo one change", "undo one edit", "undo the last change", "undo the last edit", "undo the previous edit", "undo my last action", "undo my latest edit", "undo the most recent change", "undo the latest buffer edit", "undo the previous modification", "reverse the last edit", "reverse my latest change", "reverse the previous edit", "revert the last edit", "revert my most recent change", "revert one edit", "roll back the last edit", "roll back one change", "step backward in undo history", "go back one edit", "take back the last change", "take back my latest edit", "reverse my last editing action", "remove the effect of the last edit", "undo the change just made", "perform one undo", ), "undo-redo": ( "redo", "redo once", "redo one change", "redo one edit", "redo the edit", "redo the last undone change", "redo my last undo", "redo the most recently undone edit", "redo the previous undo", "redo the change i just undid", "reapply the last undone edit", "reapply the previous change", "reapply one undone change", "reapply my last undo", "restore the last undone change", "restore the edit i undid", "restore one undone edit", "restore my most recently undone modification", "reverse the last undo", "reverse my undo", "undo the last undo", "repeat the change that was undone", "step forward in undo history", "move forward one undo step", "bring back the edit i undid", "recover the last undone edit", "apply the last undone modification again", "perform one redo", ), "beginning-of-line": ( "go to the start of the line", "go to the beginning of the line", "go to this line start", "go to the start of the current line", "move to line beginning", "move to the start of this line", "move to the beginning of the current line", "move point to line start", "move the cursor to the beginning of the line", "move the cursor to the start of this line", "jump to line start", "jump to the start of the line", "jump to the beginning of this line", "put point at the start of the current line", "put the cursor at the beginning of this line", "position the cursor at line start", "position point at the beginning of the line", "navigate to the start of this line", "navigate to line beginning", "take me to the start of this line", "take point to the beginning of the current line", "return to the beginning of this line", "return to line start", "go to column zero of the current line", "move to the first position on this line", "beginning of line", "start of the current line", "line start", ), "end-of-line": ( "go to the end of the line", "go to this line end", "go to the end of the current line", "move to line end", "move to the end of this line", "move to the end of the current line", "move point to line end", "move the cursor to the end of the line", "move the cursor to the end of this line", "jump to line end", "jump to the end of the line", "jump to the end of this line", "put point at the end of the current line", "put the cursor at the end of this line", "position the cursor at line end", "position point at the end of the line", "navigate to the end of this line", "navigate to line end", "take me to the end of this line", "take point to the end of the current line", "return to the end of this line", "return to line end", "go just past the final character on this line", "move to the final position on the current line", "move point past the last character of this line", "end of line", "end of the current line", "line end", ), "forward-word": ( "move forward one word", "move forward by a word", "move the cursor forward one word", "move point forward one word", "advance one word", "advance by one word", "advance the cursor by a word", "advance point one word", "go forward one word", "go forward by a single word", "jump forward one word", "jump ahead by one word", "skip forward one word", "skip over one word", "step forward one word", "step ahead by a word", "navigate forward one word", "navigate one word forward", "take the cursor forward a word", "take point forward one word", "move one word to the right", "move the cursor right by one word", "jump one word to the right", "skip a word to the right", "advance through one word", "move ahead one word", "forward one word", "word forward", ), "backward-word": ( "move backward one word", "move back by a word", "move the cursor backward one word", "move point backward one word", "retreat one word", "retreat by one word", "retreat the cursor by a word", "retreat point one word", "go backward one word", "go back by a single word", "jump backward one word", "jump back by one word", "skip backward one word", "skip back over one word", "step backward one word", "step back by a word", "navigate backward one word", "navigate one word backward", "take the cursor back a word", "take point backward one word", "move one word to the left", "move the cursor left by one word", "jump one word to the left", "skip a word to the left", "move backward through one word", "move back one word", "backward one word", "word backward", ), "scroll-up-command": ( "scroll down one page", "scroll down a page", "scroll the buffer down one page", "scroll the current window down a page", "scroll downward by one page", "scroll forward one page", "scroll forward a screenful", "scroll to the next page", "page down", "page down once", "page forward", "go down one page", "go to the next page", "move down by a page", "move forward a page", "advance by one page", "advance one screenful", "show the next page of the buffer", "show the next screen of text", "display the next page", "view the next page", "move the view down one page", "move the view forward a screenful", "shift the viewport down a page", "continue down to the next page", "reveal the following screenful", "scroll toward the end by one page", "next page", ), "scroll-down-command": ( "scroll up one page", "scroll up a page", "scroll the buffer up one page", "scroll the current window up a page", "scroll upward by one page", "scroll backward one page", "scroll back a screenful", "scroll to the previous page", "page up", "page up once", "page backward", "go up one page", "go to the previous page", "move up by a page", "move backward a page", "retreat by one page", "retreat one screenful", "show the previous page of the buffer", "show the previous screen of text", "display the previous page", "view the previous page", "move the view up one page", "move the view backward a screenful", "shift the viewport up a page", "go back to the preceding page", "reveal the preceding screenful", "scroll toward the beginning by one page", "previous page", ), "mark-whole-buffer": ( "select all", "select everything", "select all text", "select the entire buffer", "select the whole buffer", "select this whole buffer", "select the buffer contents", "select all the text in this buffer", "select every character in the current buffer", "select all contents of this buffer", "mark the whole buffer", "mark the entire buffer", "mark all text", "mark everything in this buffer", "mark every character of the buffer", "highlight the whole buffer", "highlight all text", "highlight everything in this buffer", "highlight the entire contents of this buffer", "highlight every character in the current buffer", "make the entire buffer the selection", "make a selection covering the whole buffer", "set the region to the entire buffer", "set the selection to all text", "extend the selection over the whole buffer", "choose all text in the current buffer", "select all buffer contents", "mark the complete buffer", ), "yank": ( "paste", "paste here", "paste once", "paste the clipboard", "paste the clipboard contents", "paste from the clipboard", "paste the copied text", "paste the last copied text", "paste the text i copied", "paste at the cursor", "paste at point", "paste into this buffer", "insert the clipboard contents", "insert text from the clipboard", "insert the copied text here", "insert the latest copied text", "insert the most recent kill", "yank", "yank once", "yank here", "yank the latest kill", "yank the most recent killed text", "yank from the kill ring", "put the clipboard text at the cursor", "put the copied text here", "bring in the copied text", "retrieve the most recent kill into the buffer", "paste the latest kill ring entry", ), "kill-line": ( "kill the rest of this line", "kill the remainder of the line", "kill to the end of the line", "kill from point to line end", "kill from the cursor to the end of this line", "delete the rest of the line", "delete the remainder of this line", "delete to the end of the current line", "delete from the cursor to line end", "delete text from point to the line end", "remove the rest of this line", "remove the remaining text on this line", "remove text from the cursor to the end of the line", "remove everything from point to line end", "cut the rest of the line", "cut the remainder of this line", "cut from point to the end of the line", "cut text from the cursor to line end", "erase the rest of the current line", "erase the remainder of this line", "erase from the cursor to the end of the line", "clear the remainder of the line", "clear text from point to line end", "truncate this line at the cursor", "discard the text from point to the end of this line", "remove the line suffix starting at point", "kill line", "kill the current line remainder", ), "find-file": ( "open file NAME", "open the file NAME", "open the file called NAME", "open the file named NAME", "open the path NAME", "open NAME as a file", "visit file NAME", "visit the file NAME", "visit the file called NAME", "visit the path NAME", "find file NAME", "find the file NAME", "find the file at NAME", "read the file NAME", "read file NAME", "read the file at NAME", "load file NAME", "load the file NAME", "load the file at NAME", "edit file NAME", "edit the file NAME", "edit the file at NAME", "show the contents of file NAME", "show the file NAME", "display the file at NAME", "bring up the file NAME", "start editing file NAME", "open the document at NAME", ), "search-forward": ( "search for NAME", "search forward for NAME", "search ahead for NAME", "search the buffer for NAME", "search this buffer for NAME", "search the current buffer for NAME", "search forward in this buffer for NAME", "find NAME in this buffer", "find the text NAME", "find the string NAME", "find the next occurrence of NAME", "find the next match for NAME", "find NAME going forward", "look for NAME in the current buffer", "look ahead for NAME", "look forward for NAME", "look for the next occurrence of NAME", "locate NAME in this buffer", "locate the next NAME", "locate the next occurrence of NAME", "move to the next occurrence of NAME", "jump to the next match for NAME", "jump forward to NAME", "scan forward for NAME", "scan ahead for NAME", "seek the next occurrence of NAME", "perform a forward search for NAME", "search onward for NAME", ), } CALIBRATION_FAMILIES = { "previous-window": ( "hand focus to the preceding window", "move window selection back by one", "give the pane preceding this one the focus", "make the window preceding this one active", "return window focus to the preceding pane", "choose the window one place earlier in window order", ), "delete-window": ( "remove the selected window keeping the remaining panes", "close the active pane alone", "eliminate the window currently in use", "dismiss just the pane that is selected", "remove the focused window from the layout", "get this window out of the current layout", ), "save-buffer": ( "record the current edits in the file on disk", "make the disk file reflect this buffer", "persist the contents of the active document", "write these changes back to the existing file", "store the modified contents of this buffer", "save the document being edited", ), "undo-only": ( "back out the most recent buffer change", "restore the state preceding my latest edit", "roll the edit history back a single step", "reverse one editing operation", "take back the modification i just made", "perform the previous edit in reverse", ), "undo-redo": ( "put back the modification removed by my last undo", "reinstate the most recent undone change", "advance the undo history by a single step", "apply one change from the redo history", "recover the modification that was just undone", "repeat the edit reversed by the last undo", ), "beginning-of-line": ( "place point at the earliest position in this line", "navigate to where the active line begins", "set point to the first position of this line", "bring the cursor to the left edge of the current line", "reposition point at this line beginning", "head to the very start of the current line", ), "end-of-line": ( "place point at the final position in this line", "navigate to where the active line ends", "set point past the last character of the current line", "bring the cursor to the right edge of this line", "reposition point at this line end", "head to the very end of the current line", ), "forward-word": ( "advance point by a single word unit", "take one word step in the forward direction", "shift the insertion point ahead by one word", "travel forward across one word", "move rightward by a word unit", "jump a single word ahead from here", ), "backward-word": ( "retreat point by a single word unit", "take one word step in the backward direction", "shift the insertion point back by one word", "travel backward across one word", "move leftward by a word unit", "jump a single word back from here", ), "scroll-up-command": ( "bring the following page into view", "advance the viewport by a screen of text", "reveal text one page further down", "show a screenful later in this buffer", "shift the displayed region forward by a page", "continue reading one page down", ), "scroll-down-command": ( "bring the preceding page into view", "retreat the viewport by a screen of text", "reveal text one page further up", "show a screenful earlier in this buffer", "shift the displayed region backward by a page", "go back to reading one page up", ), "mark-whole-buffer": ( "make the region span all of this buffer", "highlight every bit of text in the active buffer", "include the complete buffer in the selection", "set both region boundaries to cover the buffer", "mark the contents of the buffer in their entirety", "highlight everything from the beginning of the buffer", ), "yank": ( "insert what i most recently copied", "bring the latest clipboard text into this buffer", "put the latest kill ring contents at point", "retrieve copied text into the current position", "place the text on the clipboard here", "insert the newest entry from the kill ring", ), "kill-line": ( "cut away the remaining portion of this line", "discard this line text following the cursor", "remove the suffix of the current line from point onward", "erase what remains from point to this line end", "kill everything from here to the current line ending", "trim this line at the current cursor position", ), "find-file": ( "bring the file called NAME into the editor", "begin editing the document located at NAME", "visit the filesystem path NAME", "load the document stored at NAME for editing", "open a file using the path NAME", "read the contents of file NAME into an editing buffer", ), "search-forward": ( "seek the upcoming occurrence of NAME in this buffer", "locate a matching NAME further along in the text", "look onward through this buffer for NAME", "move point to the following match of NAME", "perform a forward text lookup for NAME", "search from here toward the buffer end for NAME", ), } TRAINING_REJECT_MIGRATIONS = { "select the previous window": "previous-window", "focus the previous pane": "previous-window", "move to the previous window": "previous-window", "cycle backward through the windows": "previous-window", "go back to the last pane": "previous-window", "close this window": "delete-window", "close the current pane": "delete-window", "delete the active window": "delete-window", "remove this pane": "delete-window", "hide the current pane": "delete-window", "go to the start of the line": "beginning-of-line", "move to line beginning": "beginning-of-line", "go to the end of the line": "end-of-line", "move to line end": "end-of-line", "scroll down one page": "scroll-up-command", "select the buffer contents": "mark-whole-buffer", "search for NAME": "search-forward", "find NAME in this buffer": "search-forward", "open file NAME": "find-file", "open the file NAME": "find-file", "visit file NAME": "find-file", "read the file NAME": "find-file", "find file NAME": "find-file", "load file NAME": "find-file", "show the contents of file NAME": "find-file", "save the buffer": "save-buffer", "undo the last change": "undo-only", "redo the edit": "undo-redo", } CALIBRATION_REJECT_MIGRATIONS = { "hand focus to the preceding window": "previous-window", "move window selection back by one": "previous-window", "remove the selected window and keep the rest": "delete-window", "close the active pane alone": "delete-window", "place point at the earliest position in this line": "beginning-of-line", "place point at the final position in this line": "end-of-line", "highlight everything from the beginning of the buffer": "mark-whole-buffer", "bring the file called NAME into the editor": "find-file", } CALIBRATION_REJECT_REWRITES = { "remove the selected window and keep the rest": "remove the selected window keeping the remaining panes", } TRAINING_REJECTS = ( "go back two windows", "select the previous buffer", "focus the previous frame", "close the previous window", "delete the next pane", "delete all windows", "save all buffers", "save every open file", "save the next buffer", "save a copy as NAME", "save the file under NAME", "save without writing to disk", "revert this buffer from disk", "reload the current file", "discard unsaved edits", "undo twice", "undo three changes", "undo all edits", "erase the undo history", "redo twice", "redo every undone edit", "repeat the last command", "jump to the start of the next line", "go to the end of the previous line", "move to the first nonspace character", "go to the first nonblank on this line", "move to indentation", "jump to the end of the next sentence", "advance two words", "move backward three words", "select the next word", "delete the previous word", "kill the next word", "copy the current word", "move one character forward", "move one sentence backward", "scroll down two pages", "scroll up three pages", "scroll down one line", "scroll up half a page", "scroll right one page", "scroll left one page", "select this line", "select the current paragraph", "mark the next sentence", "copy all text", "copy the buffer contents", "cut all text", "deselect everything", "clear the selection", "delete the selected region", "paste twice", "paste as plain text", "paste the previous clipboard entry", "cycle through the kill ring", "replace the selection with NAME", "insert text NAME", "delete the whole line", "delete this entire line", "kill the entire current line", "remove the line including its beginning", "delete back to line start", "kill the previous line", "kill three lines", "clear the buffer", "open file", "find file", "open the next file", "open all files", "open file NAME read only", "open file NAME in another window", "insert file NAME at point", "append the contents of file NAME", "search for", "search backward for NAME", "find the previous occurrence of NAME", "search all buffers for NAME", "search files for NAME", "search the web for NAME", "search with regular expression NAME", "replace NAME", "count occurrences of NAME", "highlight all occurrences of NAME", "delete every occurrence of NAME", ) CALIBRATION_REJECTS = ( "move window selection backward by several positions", "close a pane other than the selected one", "write every modified buffer to disk", "store this buffer under a different filename NAME", "reset the buffer to its saved version", "roll back all the changes made today", "reinstate two undone modifications", "clear the edit history completely", "put point at the beginning of the following line", "navigate to the first character following indentation", "set point at the end of the preceding sentence", "move point forward by several words", "highlight the word immediately preceding point", "erase one word ahead of the cursor", "reveal text two pages further down", "shift the viewport upward by a single line", "show half a screenful earlier in the buffer", "include only this paragraph in the selection", "copy every character of this buffer to the clipboard", "remove the highlighted text from this buffer", "insert the second newest kill ring entry", "paste the clipboard contents repeatedly", "erase the complete current line from its start", "cut text between line beginning and the cursor", "delete all remaining lines in the buffer", "load file NAME into a separate pane", "read directory NAME into a file listing", "look backward through this buffer for NAME", "seek every matching NAME across the project", "replace matching text with NAME", "find all matches of the regular expression NAME", "enumerate the occurrences of NAME", )