<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Oliver,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Certainly a useful suggestion, though it will require some implementation effort. Right now, the command line has no “state” — when you type something, it doesn’t need to know what keys were typed before, whereas with your suggestion when someone types up/down arrow the behavior depends on whether the preceding typed key was an up/down arrow or was some other key. Also, nothing in the code monitors every keystroke; only some keystrokes (e.g. up/down arrow, Return) are handled as they occur.</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Consequently, this is getting on my to-do list but may be awhile before anything materializes.</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 12, 2015, at 5:59 AM, Oliver Clarke <<a href="mailto:olibclarke@gmail.com" class="">olibclarke@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Eric, I have been using the alterations you made to history navigation in Chimera and I like them a lot - they make it much easier to locate old commands.<div class=""><br class=""></div><div class="">I have one suggestion for a slight tweak… at the moment, scrolling up through the history (with Shift+Up) seems to update the string to filter on as I scroll. There is a (very) minor issue with this approach. It means the process is not reversible and the results depend on the contents and ordering of the history.</div><div class=""><br class=""></div><div class="">For example, lets say I’m looking for a command I typed a while back, i know it started with “bond” but can’t remember the exact name of the command. If I type “bond” and then hit Shift+Up, I will only find the first matching command - if I had both bondrepr and bondzone in my command history, for example, I will only see the first one. I think it would be more intuitive if history filtering paid attention to only the initially typed string, if that is possible - so if I type “bond”, I will scroll up through bondrepr, bond zone, bonddisplay etc, and will obtain the same results heading back “down” through the command history.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Oli.</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 1, 2015, at 3:31 PM, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I also just tweaked the up/down history navigation so that if the navigation would produce a result identical to whatever is currently in the command line, it “keeps going” until it yields a results that isn’t identical. This applies to both normal up/down and shifted up/down. So, if you have several consecutive identical entries in your command history, this effectively treats them as one entry and therefore may reduce the need for a preference to not record consecutive identical entries in the command history…<div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""></div><div class=""><div apple-content-edited="true" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 1, 2015, at 6:35 AM, Oliver Clarke <<a href="mailto:olibclarke@gmail.com" class="">olibclarke@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Just tried out the new daily build and the command line history autofiltering works great, thanks Eric! This makes it much easier to cycle through previous selection commands, or to remember syntax for previous vop commands.<br class=""><br class=""></div>Cheers,<br class=""></div>Oliver.<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Sep 30, 2015 at 2:46 PM, Oliver Clarke <span dir="ltr" class=""><<a href="mailto:olibclarke@gmail.com" target="_blank" class="">olibclarke@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class="">That sounds great, thanks Eric! I look forward to trying it out, think it'll be a real timesaver!<br class=""><br class=""></div>Cheers,<br class=""></div>Oli.<br class=""></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Sep 30, 2015 at 2:19 PM, Eric Pettersen <span dir="ltr" class=""><<a href="mailto:pett@cgl.ucsf.edu" target="_blank" class="">pett@cgl.ucsf.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Oliver,<br class="">
This seems like a useful suggestion. I have implemented it in a slightly different form. If you use the shift key while navigating the command history (i.e. shift up/down arrow or control-N/P), then it will jump to the next history entry that matches the current command name. Available in the next daily build.<br class="">
<br class="">
—Eric<br class="">
<div class=""><div class=""><br class="">
> On Sep 23, 2015, at 2:42 PM, Oliver Clarke <<a href="mailto:olibclarke@gmail.com" target="_blank" class="">olibclarke@gmail.com</a>> wrote:<br class="">
><br class="">
> Hi all,<br class="">
><br class="">
> Just a suggestion (I guess for chimera 2) - would it be possible to autofilter the command history based on the typed substring?<br class="">
><br class="">
> That is if I have typed “sel” and hit the up arrow, to only cycle through those commands in the history that start with “sel”.<br class="">
><br class="">
> This would be particularly handy for scrolling quickly through recent “sel” and “color” commands - a similar mechanism is implemented in several shells and it works well.<br class="">
><br class="">
> Cheers,<br class="">
> Oliver.<br class="">
</div></div>> _______________________________________________<br class="">
> Chimera-users mailing list<br class="">
> <a href="mailto:Chimera-users@cgl.ucsf.edu" target="_blank" class="">Chimera-users@cgl.ucsf.edu</a><br class="">
> <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" rel="noreferrer" target="_blank" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class="">
><br class="">
<br class="">
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>