Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1655 closed defect (fixed)

Command history problems

Reported by: olibclarke@… Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.2.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-01-26)
Description
The behavior of filtering the command history seems to be a bit inconsistent. The way it works in Chimera, and I believe the way it is intended to work in ChimeraX, is that Shift-up filters the command history by the typed characters. This seems to work fine when I first load up ChimeraX, then after some time it no longer works - it ignores what is already typed and doesn't use it to filter.

Additionally, both in Chimera and ChimeraX, it would be good if the command history position always "reset" to the most recent command when the command line text was cleared.

What I mean by that is, if I go back 100 commands using Shift-up, and delete that text, then press the up arrow, chimera (and chimerax) will retrieve command 101 in the history, rather than the most recent command - it only resets once I enter a new command.

Cheers
Oli

Log:
> camera ortho

> cofr centerOfView

> lighting soft

> lighting depthCueColor white

UCSF ChimeraX version: 0.9 (2019-01-26)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 1bl8 format mmCIF fromDatabase pdb

1bl8 title:  
Potassium channel (KCSA) from streptomyces lividans [more info...]  
  
Chain information for 1bl8 #1  
---  
Chain | Description  
A B C D | protein (potassium channel protein)  
  
  

> ~ribbon

> display

> ~display ~@CA

> cofr centerOfView showPivot true

> cofr frontCenter

> cofr centerOfView showPivot true

> clip near -10 far 10

> close all

> open
/Users/olibclarke/Dropbox/Downloads/cryosparc_P27_J326_005_volume_map_sharp.mrc

Opened cryosparc_P27_J326_005_volume_map_sharp.mrc, grid size 360,360,360,
pixel 1.06, shown at level 0.344, step 2, values float32  




OpenGL version: 4.1 INTEL-12.4.7
OpenGL renderer: Intel(R) Iris(TM) Graphics 6100
OpenGL vendor: Intel Inc.

Change History (3)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedCommand Line
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionCommand history problems

comment:2 by Eric Pettersen, 7 years ago

Resolution: fixed
Status: acceptedclosed

Well, mostly fixed. The ChimeraX command-search code had suffered significant "bit rot" and needed fixing. I made it so that editing the text resets the search position back to the start of the history list. There seems to be a bug in Qt in that using the line-kill character (control-U for me) to clear the line doesn't fire the "text edited" signal, so my code that resets the search history isn't called until you type another character of some sort (other than up/down arrow of course), so in that particular case searching will continue from the previous position. If you clear the line by other means (lots of Delete presses; select-all then Delete) the signal is fired and the history search position is reset.

I added the same search-reset code to regular Chimera, but its line-clear behavior is even worse in that not only does line-kill not trigger the "edited" signal, neither does select-all + Delete!

in reply to:  3 ; comment:3 by olibclarke@…, 7 years ago

Great, sounds much improved!

Cheers
Oli


Note: See TracTickets for help on using tickets.