Ticket #1061 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Add copy paste and improve cursor behaviour in immediate window

Reported by: Nick Draper Owned by: Sofia Antony
Priority: critical Milestone: Iteration 25
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Whitty

Description

Allow copy-paste and automatically move the cursor to the bottom if you start typing or paste, or access history via the arrow keys.

Change History

comment:1 Changed 10 years ago by Nick Draper

  • Owner changed from Martyn Gigg to Steve Williams
  • Status changed from new to assigned
  • Priority changed from major to critical

comment:2 Changed 10 years ago by Sofia Antony

  • Owner changed from Steve Williams to Sofia Antony
  • Component set to Mantid

comment:3 Changed 10 years ago by Sofia Antony

(In [7066]) re#1061 - Added edit(cut,copy,paste) options to script interpreter window.Also improved the cursor behaviour.

comment:4 Changed 10 years ago by Sofia Antony

  • Status changed from assigned to accepted

comment:5 Changed 10 years ago by Sofia Antony

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:6 Changed 10 years ago by Martyn Gigg

  • Status changed from verify to verifying
  • Tester set to Martyn Gigg

comment:7 Changed 10 years ago by Martyn Gigg

  • Status changed from verifying to reopened
  • Resolution fixed deleted

There is still a small bug after a copy and paste action. After pasting and executing some code in the interpreter any line that then throws an error causes the >>> markers to disappear.

To reproduce:

  • Open up the Python window (F3) and type "print 1" and paste this into the interpreter;
  • Press enter to execute that.
  • Type aword into the interpreter and press enter;
  • This should throw a name error and cause all of the >>> markers to disappear;

It then makes it difficult to look back up the history of code.

comment:8 Changed 10 years ago by Sofia Antony

This works for me, both from the developing environment and installed version. Martin,Could you please look into this?

comment:9 Changed 10 years ago by Sofia Antony

  • Owner changed from Sofia Antony to Martyn Gigg
  • Status changed from reopened to assigned

comment:10 Changed 10 years ago by Martyn Gigg

(In [7164]) Fix a bug with the script interpreter where previous input markers could disappear. Re #1061

comment:11 Changed 10 years ago by Martyn Gigg

  • Status changed from assigned to accepted

comment:12 Changed 10 years ago by Martyn Gigg

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:13 Changed 10 years ago by Nick Draper

  • Status changed from verify to verifying
  • Tester changed from Martyn Gigg to Nick Draper

comment:14 Changed 10 years ago by Nick Draper

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Tested in 1.1.7165 (windows 32)

Reopened due to issues below

# Keyboard shortcut for Copy, cut does not work when not on the bottom line # would it be possible to reorganise the context menu so that copy, cut, paste are the first entries, not the last (only if it is easy!)

comment:15 Changed 10 years ago by Nick Draper

issues reproduced with better formatting

  1. Keyboard shortcut for Copy, cut does not work when not on the bottom line
  2. would it be possible to reorganise the context menu so that copy, cut, paste are the first entries, not the last (only if it is easy!)

comment:16 Changed 10 years ago by Nick Draper

  • Owner changed from Martyn Gigg to Sofia Antony
  • Status changed from reopened to assigned

comment:17 Changed 10 years ago by Sofia Antony

  • Status changed from assigned to accepted

comment:18 Changed 10 years ago by Sofia Antony

(In [7197]) re#1061 - now keyboard shortcut key Ctrl+C,Ctrl+X works when not on the current input line.also reorganised the menu items.

comment:19 Changed 10 years ago by Sofia Antony

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:20 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Tester changed from Nick Draper to Michael Whitty

comment:21 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

seems to work for the most part, though with issue where the script interpreter is not the only thing in the mantid window. new ticket created at #1839 for this case.

comment:22 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1909

Note: See TracTickets for help on using tickets.