This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QuickSearch eXtended
Goto page Previous  1, 2, 3, 4 ... 46, 47, 48  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Sun May 31, 2009 6:06 am    Post subject: Reply with quote

I made a big suggestion thread for changes in tcmatch.dll here.
It includes all suggestions made here.

j wrote:
You can not type ^[ to start an expression in a box bracket. I guess because it tries to match files with [ (or because it's an invalid expression) and does not let me continue to type. It would be good to filter a [ if it is the last character and does not have a \ before it, so you could still end an expression with \[.

I think Mr. Ghisler should change this. There would be thousands of rules for me.
(As a workaround you can right now write the complete regex in notepad and paste it via context menu)

m^2 wrote:
-Ini would be really useful. To enable reg exps by default, without '?'
-Sources. Can you change paths to relative ones?
-Bug: In reg exp mode, it doesn't accept space to make multiple searches. Example: "?h " in the main TC directory.


Will see whats possible.
1. Ok. I will use a entry like:
Code:
google_search_activate_char=
regex_search_activate_char=?

So it would be possible to customize it for everyone needs. For example with a ">" sign for RegEx.
2. You mean the path of the dll? Yes I will correct it. Ghisler startet it. Smile
3. Its no bug, its a not written feature. Wink
Till now the google like search was only meant for regex.

Another planned entry for the ini file is:
Code:
case_sensitive=1/0

Do you have any other useful entrys?
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Sun May 31, 2009 7:07 am    Post subject: Reply with quote

Regarding the ini file:
There will be trouble for the location, because Files I create relative are put in the current directory where the files are filtered. Dont know why.

So I have to use the registry:
[HKEY_CURRENT_USER\Software\Ghisler\Total Commander\InstallDir]

Any other thoughts?
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Sun May 31, 2009 7:18 am    Post subject: Reply with quote

Because it's TC's current directory? Razz
Use %COMMANDER_INI%.
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
j
Member
Member


Joined: 13 Apr 2009
Posts: 123

PostPosted: Sun May 31, 2009 7:24 am    Post subject: Reply with quote

You could use something like:

Code:
WCHAR buff[4096];
GetEnvironmentVariable(L"COMMANDER_INI", buff, 4096);
wstring path(buff);
int pos;
if((pos = path.find_last_of('\\')) != string::npos)
  path = path.substr(0, pos+1);
else
  path = "";
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34726
Location: Switzerland

PostPosted: Sun May 31, 2009 8:05 am    Post subject: Reply with quote

This search extension interface isn't really suited for regular expressions, because you cannot type a character when there is no match. So what you need to do is return true for all files if a certain regular expression is invalid, so the user can continue to type text.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Sun May 31, 2009 9:06 am    Post subject: Reply with quote

2ghisler(Author):
But you could change it, so that it will be possible to write something, even if there are no matches in the file list at all.
Please. Smile

Would be easier I think.
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Sun May 31, 2009 5:53 pm    Post subject: Reply with quote

Updated first post: Version 1.0 is available.
  • Added an similarity search. (Levenshtein)
  • Added google like search for RegEx.
  • Added a workaround for open, but not closed parenthesis. ("()[]{}")
  • Added support for an ini file. (activation chars, case sensitivity)
  • Fixed absolute paths in source.

2j:
Thx for the suggestions and the code snippet.

2m^2:
Thx for the suggestions.

Hope it suits your needs.
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fenix_productions
Power Member
Power Member


Joined: 07 Aug 2005
Posts: 1945
Location: Poland

PostPosted: Sun May 31, 2009 6:14 pm    Post subject: Reply with quote

2Samuel

That is great! I am truly amazed by your effort.

One suggestion: descript.ion support (matching comments assigned to files and not filenames themself).
_________________
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Mon Jun 01, 2009 12:49 am    Post subject: Reply with quote

fenix_productions wrote:
2Samuel

That is great! I am truly amazed by your effort.

One suggestion: descript.ion support (matching comments assigned to files and not filenames themself).

You inspired me.
A time consuming, but IMO worthwhile request: support for wdx plugins.
wdx_super is open source and implements it, so you don't have to fully implement it, just port and update for Unicode. Or maybe there is some open C++ implementation already? FileDescriptions.wdx?

And it will fit very well your current .ini format - just a special character to start a wdx search. Would probably require some aliases to be really quick though. Smile

OK, now I'm going to try the latest version.Smile
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Mon Jun 01, 2009 1:05 am    Post subject: Reply with quote

Can't make it work.Sad
config:
Code:
[general]
google_search_activate_char=/
regex_search_activate_char=
leven_search_activate_char=<
case_sensitive=0

In the main tc dir I type ".o" and it doesn't accept o.
Also, I could tell it before, but somehow didn't think about it:
google_search_activate_char. I think that simple_search... would be a better name, since regex works like google too.
EDIT: wait! I got it!
It's an installation bug: it copies .ini to the main TC dir and then searches for it in the config dir. I think it would be better if you didn't bundle the ini with the installer but create it at the first start. It would prevent some confusion.
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Mon Jun 01, 2009 1:26 am    Post subject: Reply with quote

I dont want to create the ini with the dll. If someone doesnt want an ini, he should be able to delete it. (so it will not come again) -> presets from the dll are used.

Edit: Is it possible to copy it at the install to the directory of the wincmd.ini?
Should I search for the ini in path of wincmd.ini and afterwards in TC-directory. (If it was not found)
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Mon Jun 01, 2009 1:43 am    Post subject: Reply with quote

Couldn't you use this?

%COMMANDER_INI%

And then just put in INI file where that leads to.
_________________
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Samuel
Power Member
Power Member


Joined: 29 Aug 2003
Posts: 1837
Location: Brandenburg, Germany

PostPosted: Mon Jun 01, 2009 1:49 am    Post subject: Reply with quote

I do in the dll. But AFAIK the TC-auto-install has no option for this.
_________________
QuickSearch eXtended | ButtonBar eXtended | www.familie-plentz.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
m^2
Power Member
Power Member


Joined: 12 Jul 2006
Posts: 1413
Location: Poland

PostPosted: Mon Jun 01, 2009 1:59 am    Post subject: Reply with quote

Yes, autoinstall copies all files to one place.
_________________
Image: http://img201.imageshack.us/img201/2110/pcbsdec7.jpg
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Mon Jun 01, 2009 2:06 am    Post subject: Reply with quote

How do some of the plugins do it? I have some plugin INIs in my TC INI directory, which is on drive D (my backup drive).
_________________
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4 ... 46, 47, 48  Next
Page 3 of 48

 
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


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group