Focusing next selection in list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Millzey
Posts: 169
Joined: 07 Oct 2011 15:10

Focusing next selection in list

Post by Millzey »

Im my current pane I use a script to extract a pattern from the current item, and select/find a small amount of items in a long list in the opposite pane .

example: sel "[pattern*]",,1;

I can't figure out how to cycle the next selected item into focus with any default shortcut. The only focus shortcut applicable is focus the first selection. Scrolling around to find them wouldnt be practical, and at the same time I dont want to have to use a visual filter and toggle it off after each quick selection.

Instead of selecting items, I tried using >pattern or goto ">pattern" in address bar and using F3 to find next occurance but it says either F3 pressed outside scope or if I focus the list it tries to find whatever my previous type-ahead pattern was.

Is there a function to perform type ahead find so I can use F3?

Am I missing something obvious?

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Focusing next selection in list

Post by admin »

It's not about a script command, right? You want a keyboard shortcut to focus the next selected item (without losing the selections)? And finally cycle to the first selected item?

Millzey
Posts: 169
Joined: 07 Oct 2011 15:10

Re: Focusing next selection in list

Post by Millzey »

I'm using selections to find matches, but if necessary to be able focus to the next selection I thought I might have to use a find function.

If there was a function to bring focus to a particular item in the list while preserving selections, using <curitemprev> for example, I could just bind a key to that, but yes a default shortcut to do what you described is exactly what I was after.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Focusing next selection in list

Post by admin »

Are you aware of this one?
Miscellaneous / Focus Functions / Focus First Selected Item

It's at least a start. :)

I'll see if I can add something like Miscellaneous / Focus Functions / Focus Next Selected Item ...

Millzey
Posts: 169
Joined: 07 Oct 2011 15:10

Re: Focusing next selection in list

Post by Millzey »

XYP FOREVER :beer: :beer: :beer: :beer:

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Focusing next selection in list

Post by admin »

I must say these are really cool functions. I wonder why nobody ever missed them, me included. :eh:

Next beta:

Code: Select all

    + CKS | Miscellaneous | Focus Functions: Added command "Focus Next Selected 
      Item" (#1064). In the List, moves the focus to the next selected item from 
      here, and moves it into view if necessary. All selections are kept.
      Also focuses the list if necessary. If no item is selected the focused 
      item is moved into view. If the focused item is selected but not current 
      item (not on Info Panel) it is made current item.
    + CKS | Miscellaneous | Focus Functions: Added command "Focus Previous Selected 
      Item" (#1065). In the List, moves the focus to the previous selected item from 
      here, and moves it into view if necessary. All selections are kept.
      See above for the rest.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Focusing next selection in list

Post by admin »

Works for you?

Post Reply