Page 1 of 1
Go To Line... and select
Posted: 25 Nov 2008 00:25
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?
Re: Go To Line... and select
Posted: 25 Nov 2008 00:42
by admin
Uhm, I'm currently not lacking ideas.
The wishes forum is rather meant for ways to make real world computer life easier.
Re: Go To Line... and select
Posted: 25 Nov 2008 00:47
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;
Re: Go To Line... and select
Posted: 25 Nov 2008 00:49
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?
Re: Go To Line... and select
Posted: 25 Nov 2008 01:28
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
> 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.
Re: Go To Line... and select
Posted: 25 Nov 2008 01:50
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
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?
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.
Re: Go To Line... and select
Posted: 25 Nov 2008 03:18
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
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?
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.

With
unbelieving i want to say that i didn't could
believe that i had could manage this to work out myself.
As i said i know a many english words, but may fail with the syntax/grammatic... corrections are welcome everytime

Re: Go To Line... and select
Posted: 25 Nov 2008 03:25
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;

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
THX jacky, i will try out your script.