Thanks for the suggestions. 1. Agreed that mode 2 should append to the current line, not the following line, and that it should be to the current window (term or edit).
2. I like the other suggestions, but wonder if the following might work better: * mode 3 is like mode 2, except insert into the current line at the current cursor position * when a user key is pressed, the current window text and current window selection (cursor position if no selection) are first written to globals in the jqtide locale. This means that any expression run in modes 0 or 1 can use them as parameters, and I think this captures the intent of the 2nd mode digit. 3. The next J803 beta has commands to query the text and select state of the term or edit windows. On Tue, Sep 16, 2014 at 10:39 AM, 'Pascal Jasmin' via Beta < [email protected]> wrote: > defining this in userkeys.cfg > > F3;2;add|;| > > where the token chosen is actually 28 { a. > > there's 2 problems: > > 1. instead of inserting into the current terminal (jqt repl) line, it > creates and inserts on the following line. If this is intended, perhaps > there could be a mode 3, that inserts at current cursor position? > > 2. In the editor, pressing the shortcut also inserts to terminal instead > of in editor. Even if selected through menu option. > > A request would be to have mode use an optional 2nd digit to pass > parameters: > 0 - same as elided, no parameter > 1 - selection (with say line feeds inserted if multi lines) > 2 - whole line as y parameter to monad > 3 - left of cursor as x, right of cursor as y > > '' would be substituted for no data at left or right or in line or > selection. > > Perhaps there already is, or could be, a way to query the line and cursor > position in both editor and jqt terminal? > > These 2 modes aren't important enough. They would allow returning a verb, > but its hard to imagine an application. > 4 - left of cursor as m to adverb > 5 - whole line as m to adverb. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
