That could be a bit tricky, since the entire edit session is editable. So I suspect the concept you are aiming at would be that "pasting at the end" should give a number of lines which would be executed at once.
Perhaps a visual cue would be best here -- probably the text which would be executed should have a different background color from the rest of the session. (Note that this background color difference could inform intuition both for the current "a sentence is one line and Enter executes the current sentence" design and a hypothetical future "user can paste in multiple lines which would be executed together" design.) I hope this makes sense, -- Raul On Sun, Jul 31, 2022 at 8:33 AM bill lam <bbill....@gmail.com> wrote: > I think this is counter intuitive. It would be nice if all the lines will > be executed together when user press enter after paste. > > On Sun, 31 Jul 2022 at 11:20 PM Henry Rich <henryhr...@gmail.com> wrote: > > > Important point: if you paste multiple lines into Jqt and then press > > ENTER, only the last line will be executed. To execute the entire > > block, you need 'Run Selection' (F8). > > > > The idea is that the term window is not a session log, it's a window > > that you can edit. In general, pressing ENTER on the last line executes > > that line, while ENTER on any line but the last copies that line into > > the last line. > > > > Henry Rich > > > > > > > > On 7/31/2022 10:24 AM, chris burke wrote: > > > That is the error you get if "iter" is not defined, so you probably > > > didn't run the first line. > > > > > > On Sun, Jul 31, 2022 at 4:24 AM Razetime <rraghu.11...@gmail.com> wrote: > > >> On this rosetta code page for the Hilbert Curve > > >> <https://rosettacode.org/wiki/Hilbert_curve#J>, I tried running the > > code, > > >> but I get an error: > > >> > > >> iter=: (, 1 , +@|.) @: (,~ 0j_1 ,~ 0j_1*|.) > > >> > > >> hilbert=: {{0j1+(%{:) +/\0,iter ^: y ''}} > > >> > > >> require 'plot' > > >> > > >> plot hilbert 5 > > >> > > >> |value error: iter > > >> > > >> | 0j1+(%{:)+/\0, iter^:y'' > > >> > > >> plot hilbert 5 > > >> > > >> > > >> I am running this on J903, not J902, but i don't see why it isn't > > running. > > >> ---------------------------------------------------------------------- > > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > > This email has been checked for viruses by AVG. > > https://www.avg.com > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm