Provisional selection drives edit suggestion generation
Abstract
Edit automation enhancements may be implemented in source code editors and other text editors. Provisional selections that indicate user intentions are submitted to a suggestion generator with other edit context information, to improve the quality of generated text suggestions and reduce the cognitive load on users. A provisional selection may include a highlighted completion list entry, or document text targeted by a hovering cursor, or metainformation text targeted by the hovering cursor, for example. An inline grey text suggestion driven by provisional selection may be displayed simultaneously with completion list suggestions that were created without regard to provisional selection. Suggestions driven by provisional selection may be interleaved with existing document text. Suggestions may be accepted fully in one gesture, or in parts. Suggestions may be edited by a user before being accepted, driving further suggestion refinement. Multiple suggestions may be displayed simultaneously, reducing pressure on the suggestion generator.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A computing system configured to display text suggestions which change according to provisional selections made during an editing session, the system comprising:
a digital memory, the digital memory configurable to contain a document, the document including document text; a processor in operable communication with the digital memory; a display device; an editor having a user interface which upon execution with the processor displays at least a portion of the document on the display device, the user interface including a text insertion point; wherein the editor is configured to perform edit automation steps upon execution with the processor, including automatically (a) submitting edit context information to a suggestion generation machine learning model, the edit context information including a provisional selection of a completion set entry of a multi-entry completion set which is displayed in the user interface, (b) getting from the suggestion generation machine learning model a completion text suggestion which is based at least in part on the provisional selection, and (c) displaying the completion text suggestion near the text insertion point.
2 . The system of claim 1 , wherein the document text includes source code, and the provisional selection selects at least one of the following:
a completion set entry which includes a source code method suggestion; a completion set entry which includes an application program interface method suggestion; a completion set entry which includes a source code property suggestion; a completion set entry which includes a source code reserved word suggestion; a completion set entry which includes a source code data variable suggestion; a completion set entry which includes a source code data structure suggestion; a completion set entry which includes a source code identifier from an application program interface suggestion; a completion set entry which includes a source code method argument suggestion; or a completion set entry which includes a source code overloaded method suggestion.
3 . The system of claim 1 , wherein the edit automation steps include producing a filtered completion item list by filtering a set of source code completion items, and wherein the provisional selection includes a user-indicated entry in the filtered completion item list.
4 . The system of claim 1 , wherein the edit automation steps include detecting that a cursor is hovering over a hover target portion of the document text, and wherein the provisional selection includes at least part of the hover target portion.
5 . The system of claim 1 , wherein the edit automation steps further comprise committing the completion text suggestion, and wherein the committing includes:
receiving an acceptance of at least a part of the completion text suggestion; designating the part of the completion text suggestion as an accepted part; and altering the document text to include a copy of the accepted part.
6 . A method which provides updated text suggestions as provisional selections occur during a document editing session, the method comprising:
obtaining via a user interface a first provisional selection which is a first focus of attention in the user interface in response to an interaction received by the computing system in the user interface, the provisional selection corresponding to a completion set entry of a completion set which has a plurality of entries; getting from a suggestion generation machine learning model a first text suggestion which is based at least in part on the first provisional selection and which includes a possible line completion; and displaying the first text suggestion in the user interface.
7 . The method of claim 6 , further comprising:
obtaining via the user interface a second provisional selection which is a second focus of attention in the user interface; getting from the suggestion generation machine learning model a second text suggestion which is based at least in part on the second provisional selection; removing the first text suggestion from being displayed; and displaying the second text suggestion inline in the user interface.
8 . The method of claim 6 , wherein at least one of the following conditions is satisfied:
the first text suggestion spans more than one line of text; or the first text suggestion includes a multi-part text suggestion having at least two parts, and the method displays the two parts with an intervening portion of document text displayed between the two parts.
9 . The method of claim 6 , wherein the method integrates semantic completion with full line completion.
10 . The method of claim 6 , further comprising:
acquiring metainformation text which includes a natural language description of a token that is represented by at least a part of the first text suggestion; and displaying the metainformation text while displaying the first text suggestion.
11 . The method of claim 7 , further comprising:
getting a third text suggestion from an origin which is not the suggestion generation model; and displaying the third text suggestion while displaying the second text suggestion.
12 . The method of claim 6 , further comprising:
committing the first provisional selection upon receiving a first instance of a commit gesture; and then committing at least a part of the first text suggestion upon receiving a second instance of the commit gesture.
13 . The method of claim 6 , wherein the first provisional selection corresponds to an item in a set of available provisional items, and method comprises displaying at least a portion of the set of available provisional items.
14 . The method of claim 6 , wherein the method includes modifying the first text suggestion based on user input, and then committing the first text suggestion as modified.
15 . The method of claim 6 , wherein the method comprises detecting that a cursor is hovering over a hover target, and wherein the first provisional selection corresponds to at least a part of the hover target.
16 . A computer-readable storage device configured with data and instructions which upon execution by a processor cause a computing system to perform a method which provides updated text suggestions as provisional selections occur during a document editing session, the method comprising:
obtaining via a user interface a first provisional selection corresponding to a first completion set entry of a completion set which has a plurality of entries; getting from a suggestion generation model a first text suggestion which is based at least in part on the first provisional selection; displaying the first text suggestion; obtaining via a user interface a second provisional selection corresponding to a second completion set entry of the completion set; getting from the suggestion generation model a second text suggestion which is based at least in part on the second provisional selection; removing the first text suggestion from being displayed; and displaying the second text suggestion.
17 . The storage device of claim 16 , wherein the second text suggestion shows at least one of:
an application program interface method and a parameter of the application program interface method; a source code method; a source code property; a source code reserved word; a source code data variable; a source code data structure; a source code identifier from an application program interface; a source code method argument; or a source code overloaded method.
18 . The storage device of claim 16 , wherein the method includes getting at least two text suggestions from the suggestion generation model, and displaying the at least two text suggestions interleaved with document text.
19 . The storage device of claim 16 , wherein the second text suggestion is displayed as an entry in the completion set.
20 . The storage device of claim 16 , wherein the provisional selection corresponds to an item in a set of available provisional items, and method comprises at least one of the following:
displaying a column of available provisional items; displaying a grid of available provisional items; displaying a menu of available provisional items; or displaying a scrollable list of available provisional items.Join the waitlist — get patent alerts
Track US2023376685A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.