AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scripts discussion (2)
Goto page Previous  1, 2, 3 ... 58, 59, 60 ... 94, 95, 96  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sat Nov 17, 2012 11:00 pm    Post subject: Reply with quote

FindFiles.js
Added: click on header of files list - sort files ascending/descending.
Added: option in settings "Show full path on files list".
Fixed: run time error if double click on empty files list.
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2034
Location: Vinnitsa, Ukraine

PostPosted: Sat Nov 17, 2012 11:59 pm    Post subject: Reply with quote

KDJ, can You add multiple wildcards search? Separated by semicolon like "*.h*; *.c*".
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sun Nov 18, 2012 3:58 pm    Post subject: Reply with quote

FeyFre
#1
Now you can do this using regular expression eg:
\.(h|c)[^\.]*$

#2
Some programs use to multiple wildcards search a list of items separated by semicolon or space.
But both semicolon and space can be included in the file name.
In this way, we do not find a file whose name contains a semicolon or a space:
*;*
* *
Can I use an another separator? One of these, which is illegal in the file name:
<>:"/\|*?
I think will be good colon : or pipe |.
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2034
Location: Vinnitsa, Ukraine

PostPosted: Sun Nov 18, 2012 4:37 pm    Post subject: Reply with quote

"|" is widely used as exluding mask.
":" is valid character, because you specifying full name with letter.
Mask with spaces must be qouted by quotes. So mask separators if they used as part of mask must be quoted.
By the way, it is only ntfs and fat does not allows colons in names, but not some other FSs(ext2/3/4, other from UNIX world).
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sun Nov 18, 2012 7:21 pm    Post subject: Reply with quote

FeyFre
Quote:
":" is valid character, because you specifying full name with letter.

No, the mask only applies to the file name, without path. The path is specified in field "Directory".

Quote:
Mask with spaces must be qouted by quotes. So mask separators if they used as part of mask must be quoted.

No, in the current version of the script do not use quotes for search files with spaces in the name, so we should give:
* *

What separator will be the best?
For now, I don't know how to solve this problem.
Maybe leave it as is, and to advanced search use regular expressions.
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2034
Location: Vinnitsa, Ukraine

PostPosted: Sun Nov 18, 2012 7:27 pm    Post subject: Reply with quote

Quote:
No, the mask only applies to the file name, without path. The path is specified in field "Directory".
Probably. I did used it once, so not remembered details.
Quote:
No, in the current version of the script do not use quotes for search files with spaces in the name, so we should give:
* *
I know. I meant, it would be good if it will in future.
Quote:
What separator will be the best?
For now, I don't know how to solve this problem.
Maybe leave it as is, and to advanced search use regular expressions.
Do it by your desire, I shall be happy in any case. By the way, ampersand (&) sign can also be suitable here.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sun Nov 18, 2012 8:06 pm    Post subject: Reply with quote

FeyFre
With an ampersand is the same problem as with a semicolon - it may be in the file name.
Can apply slash or backslash as separator?
Back to top
View user's profile Send private message
DV



Joined: 16 Nov 2006
Posts: 829
Location: Kyiv, Ukraine

PostPosted: Sun Nov 18, 2012 9:05 pm    Post subject: Reply with quote

Semicolon ';' and comma ',' are commonly used as separators in different file managers. Also, spaces are ignored in this case, i.e. "*.cmd;*.bat" equals to "*.cmd, *.bat". This is a common and usual way, so seems to be the best option. If you want to support ',' and ';' as a part of file name, consider use them inside quotes. Otherwise just treat them as separators.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Mon Nov 19, 2012 7:51 pm    Post subject: Reply with quote

FeyFre, DV
Ok, I'll try to do it with a semicolon as a separator.

Andrey_A_A
Thank you for the translation into Russian FindFiles.js.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Mon Nov 19, 2012 8:50 pm    Post subject: Reply with quote

FindFiles.js
Added: Alt+Del - remove item from history list (Directory, Name of file, Text in file).
Added: Russian translation.
Fixed: set selection after changing setting "Show full path on files list".

Note:
Starting from version 4.8.0 AkelPad, properly working search in binary files.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Tue Nov 20, 2012 9:33 pm    Post subject: Reply with quote

FeyFre wrote:
KDJ, can You add multiple wildcards search? Separated by semicolon like "*.h*; *.c*".

Try this test version FindFiles_test.js: http://akelpad.sourceforge.net/files/plugs/Scripts/KDJ.zip

PS: Help for wildcards - F1 or button "?".
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2034
Location: Vinnitsa, Ukraine

PostPosted: Tue Nov 20, 2012 10:32 pm    Post subject: Reply with quote

Yes, it works for me now Smile Thanks.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Thu Nov 22, 2012 6:40 pm    Post subject: Reply with quote

FindFiles.js
Added:
- in the field "Name of file", you can specify a semicolon-separated list of wildcards masks,
- help for wildcards.
Updated Chinese translation.
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2602
Location: ,

PostPosted: Thu Nov 22, 2012 11:13 pm    Post subject: Reply with quote

KDJ
> FindFiles.js
I would like when you open the file (double-click), the first occurrence of the searched text has been selected.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Fri Nov 23, 2012 7:59 pm    Post subject: Reply with quote

FindFiles.js
Added: ability to translate RegExp help.
Updated Chinese translation.

VladSh wrote:
> FindFiles.js
I would like when you open the file (double-click), the first occurrence of the searched text has been selected.

I'll take this into account in the next version of script.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2, 3 ... 58, 59, 60 ... 94, 95, 96  Next
Page 59 of 96

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group