Scripts discussion (2)
- Author
- Message
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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 |.
#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 |.
-
Offline
- Posts: 2247
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
"|" 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).
":" 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).
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
FeyFre
* *
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.
No, the mask only applies to the file name, without path. The path is specified in field "Directory".":" is valid character, because you specifying full name with letter.
No, in the current version of the script do not use quotes for search files with spaces in the name, so we should give:Mask with spaces must be qouted by quotes. So mask separators if they used as part of mask must be quoted.
* *
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.
-
Offline
- Posts: 2247
- Joined: Tue Aug 07, 2007 2:03 pm
- Location: Vinnitsa, Ukraine
Probably. I did used it once, so not remembered details.No, the mask only applies to the file name, without path. The path is specified in field "Directory".
I know. I meant, it would be good if it will in future.No, in the current version of the script do not use quotes for search files with spaces in the name, so we should give:
* *
Do it by your desire, I shall be happy in any case. By the way, ampersand (&) sign can also be suitable here.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.
-
Offline
- Posts: 1250
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
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.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
Try this test version FindFiles_test.js: http://akelpad.sourceforge.net/files/pl ... ts/KDJ.zipFeyFre wrote:KDJ, can You add multiple wildcards search? Separated by semicolon like "*.h*; *.c*".
PS: Help for wildcards - F1 or button "?".
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
Added:
- in the field "Name of file", you can specify a semicolon-separated list of wildcards masks,
- help for wildcards.
Updated Chinese translation.
-
Offline
- Posts: 3217
- Joined: Wed Nov 29, 2006 1:19 pm
- Location: Киев, Русь
- Contact:
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
FindFiles.js
Added: ability to translate RegExp help.
Updated Chinese translation.
Added: ability to translate RegExp help.
Updated Chinese translation.
I'll take this into account in the next version of script.VladSh wrote:> FindFiles.js
I would like when you open the file (double-click), the first occurrence of the searched text has been selected.