Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

ruby on rails - Stop ...skipping... SUMMARY OF LESS COMMANDS Commands marked with * may be preceded by a number

When copying some code (about 50 lines) from a rake task to the rails console, I want it to just run the code in the rails console, but instead this happens. The first part is some results printing to screen, but I have no idea what happens next):

 #<Appointment:0x00007fb83eec5358
  id: "0f0e14a6-1645-4a7b-ad61-f799e60ac570",
  doctor_id: 1,
  patient_id: 1,
  start_time: Sun, 24 Jan 2021 13:25:45 UTC +00:00,
  end_time: Sun, 24 Jan 2021 14:25:45 UTC +00:00,
  created_at: Sun, 24 Jan 2021 12:50:45 UTC +00:00,
  updated_at: Sun, 24 Jan 2021 13:10:45 UTC +00:00]
...skipping...


                   SUMMARY OF LESS COMMANDS

      Commands marked with * may be preceded by a number, N.
      Notes in parentheses indicate the behavior if N is given.
      A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

  h  H                 Display this help.
  q  :q  Q  :Q  ZZ     Exit.
 ---------------------------------------------------------------------------

                           MOVING

  e  ^E  j  ^N  CR  *  Forward  one line   (or N lines).
  y  ^Y  k  ^K  ^P  *  Backward one line   (or N lines).

What is going on and how do I stop it?

Notes:

  • Here is the full text of what appears
  • I tried running Pry.config.pager = false as provided here, but the problem happens despite that.
question from:https://stackoverflow.com/questions/65871037/stop-skipping-summary-of-less-commands-commands-marked-with-may-be-prece

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...