Go To Line... and select

Features wanted...
Post Reply
Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Go To Line... and select

Post by Stefan »

Idea
Go To Line... improvements

1.)
In "Go To Line..."-dialog add check box "[ ] Keep selection"
to keep the current selection of files


2.)
In "Go To Line..."-dialog add check box "[ ] select to"
to go to line and select all files between


3.)
Improved syntax "Go To +n lines"
to step 100 lines forward by using "+100" in "Go To Line..."-dialog


So one could use
"Go To Line [+100]__ [x] select to""
to select the next hundred files


What do you think?

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

Re: Go To Line... and select

Post by admin »

Uhm, I'm currently not lacking ideas. :wink:

The wishes forum is rather meant for ways to make real world computer life easier.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Go To Line... and select

Post by jacky »

Stefan wrote:What do you think?
And I think you probably can do all/some of that already in scripting, thanks to command sel
Here's a quick little example:

Code: Select all

"Go To Line..."
  input $line, "Go To Line?";
  substr $filter, report("{Name}|", 1), 0, -1;
  sel $line;
  load (($filter != "") ? (confirm("Restore Selection?") ? "selfilter ""$filter"";" : 'call') : 'call'),,s;
"Select Next Lines..."
  input $line, "Select Next Lines?";
  sel +, $line;
Proud XYplorer Fanatic

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Go To Line... and select

Post by j_c_hallgren »

Stefan wrote:Idea
Go To Line... improvements

What do you think?
I've tried but was unable to think of a situation that these would be needed in...which I suspect contributed to Don's response...for future reference at least, could you provide an example when this/these would do something that could not already be done via some other existing method?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Go To Line... and select

Post by Stefan »

I want to try to make an script with 'sel' on my own... but if i take a look on Jackys script
i am unbelieving to do this right now :shock:


> be done via some other existing method?
I didn't know all existing methods, but the first i saw was "Go To Line..." and there i expect such an feature.


Well, for what?
I have now and then long list of files to handle with, f.ex. copying many files over slow network...
here i want to select a few dozen and copy them... yes i could select them by hand too...but i use an FM to aid me.

or i have to split a list of many files in different folders, here too it would be nice to
select every time the same amount of files, without count them by hand.

Or i want to go to some file and say "select the next 25 files" because i know they belong together.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Go To Line... and select

Post by j_c_hallgren »

Stefan wrote:I want to try to make an script with 'sel' on my own... but if i take a look on Jackys script
i am unbelieving to do this right now :shock:
Did you mean that jacky's script was a bit too complex to follow? Because I am sure that 'unbelieving' is the wrong word here, and wondering what it should be....and by the way, jacky has become not only the "blog master" but "script guru" as well, and I have trouble following some of his scripts as well, so don't feel bad, ok? :lol:

Anyway, it would appear that what you need to accomplish can be done via scripting so if an enhancement were to be made, I'd suspect it should be done so as to make the script simpler/easier.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Go To Line... and select

Post by Stefan »

j_c_hallgren wrote:
Stefan wrote:I want to try to make an script with 'sel' on my own... but if i take a look on Jackys script
i am unbelieving to do this right now :shock:
Did you mean that jacky's script was a bit too complex to follow? Because I am sure that 'unbelieving' is the wrong word here, and wondering what it should be....and by the way, jacky has become not only the "blog master" but "script guru" as well, and I have trouble following some of his scripts as well, so don't feel bad, ok? :lol:

Anyway, it would appear that what you need to accomplish can be done via scripting so if an enhancement were to be made, I'd suspect it should be done so as to make the script simpler/easier.
:D With unbelieving i want to say that i didn't could believe that i had could manage this to work out myself. :roll:

As i said i know a many english words, but may fail with the syntax/grammatic... corrections are welcome everytime :lol:

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Go To Line... and select

Post by Stefan »

jacky wrote:
Stefan wrote:What do you think?
And I think you probably can do all/some of that already in scripting, thanks to command sel
Here's a quick little example:

Code: Select all

"Go To Line..."
  input $line, "Go To Line?";
  substr $filter, report("{Name}|", 1), 0, -1;
  sel $line;
  load (($filter != "") ? (confirm("Restore Selection?") ? "selfilter ""$filter"";" : 'call') : 'call'),,s;
"Select Next Lines..."
  input $line, "Select Next Lines?";
  sel +, $line;
:lol: I on my own had tried to find an solution like this:

$step= Input
For i = 1 To UpCountFiles
GoDown($step)
sel
i++
Next


silly me :roll:

THX jacky, i will try out your script.

Post Reply