Alphabetical shortcut

Features wanted...
Post Reply
raananb
Posts: 127
Joined: 12 Feb 2008 23:38

Alphabetical shortcut

Post by raananb » 07 May 2017 16:34

It would be extremely useful if, along with the order selector (v and inverted v), the Name header label displayed a button allowing to select the first letter of a desired filename.

I have implemented this feature (Button 'A' in the image below) in my applications and it is a very efficient shortcut: when a letter is clicked, the first item starting with that letter is shown at the head of the display window. Imagine its usefulness in Windows/systme32 with it >4000 files.

Image

highend
Posts: 8382
Joined: 06 Feb 2011 00:33

Re: Alphabetical shortcut

Post by highend » 07 May 2017 19:50

Have you tried something like this?

Code: Select all

    $items = listpane(, , 1+4, <crlf>);
    $firstChar = popupmenu(formatlist(recase(regexmatches($items, "^."), "upper"), "cde"));
    if ($firstChar) {
        $firstItem = gettoken(regexmatches($items, "^$firstChar.*?(?=\r?\n)"), 1, "|");
        $oldClip = <clipboard>;
        copytext $firstItem;
        sendkeys "^v";
        wait 50;
        copytext $oldClip;
    }
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

raananb
Posts: 127
Joined: 12 Feb 2008 23:38

Re: Alphabetical shortcut

Post by raananb » 07 May 2017 23:14

With no experience with XY scripts, I tried to run the script but did not get anything useful.

I'd rather have a button...

highend
Posts: 8382
Joined: 06 Feb 2011 00:33

Re: Alphabetical shortcut

Post by highend » 07 May 2017 23:17

It's meant to be invoked via a button ;)
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Alphabetical shortcut

Post by SkyFrontier » 07 May 2017 23:56

Errr... no matter how I write this, I have the feeling it WILL sound harsh. Not my intention here, so...

I don't get the benefit of having a button to be clicked, then to have a second entry to presumably be clicked just to... jump to the first item having that clicked letter.

Have you clicked the 'type ahead find' under Configuration, General, 'Menus, Mouse, Safety', raananb? (not to mention the awesome filter-as-you-type right in the file list... )

I ask this because I'm *ALWAYS* interested in what may bring usability gains, having written a good few scripts in that direction which helps me tons each and everyday so I have the minimum possible interface between my ideas and what the computers offers me, but... hum... am I missing something here? :roll:
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

highend
Posts: 8382
Joined: 06 Feb 2011 00:33

Re: Alphabetical shortcut

Post by highend » 08 May 2017 07:36

Mouse users vs. keyboard users...
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Alphabetical shortcut

Post by SkyFrontier » 09 May 2017 04:59

Hum.
'When you're a hammer, all you see are nails'.
Thanks, highend... :roll:
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply