PDA

View Full Version : Feature Request: Optimize find dialog


andreas
10-03-2015, 02:53 PM
I think that "Find" dialog (ctrl+F) is forgotten in the past!
You can add some additional features like:

Find previous (please!!! I have to search from the beginning each time I accidentally press next! :cool: )

Save Results: Everything that matches the search query can be saved in a txt for future usage.

Missing Icon on top left corner (I don't know if it should have)

Search files / directories only option

Show only results to ftp window: Hide non matching files or directories from the ftp window.

You might like some of them

bigstar
10-04-2015, 09:39 AM
I think that "Find" dialog (ctrl+F) is forgotten in the past!
You can add some additional features like:

Find previous (please!!! I have to search from the beginning each time I accidentally press next! :cool: )

Since the current behavior is to select each match on find, how exactly would this work? Would it un-select the current match and then jump to the previous match? I am not sure if there is a keyboard shortcut available for this operation, as most of them are used.

Save Results:Everything that matches the search query can be saved in a txt for future usage.Do you mean the search query text, like a drop-down box allowing you to select a previous search instead of having to re-enter it?

Missing Icon on top left corner (I don't know if it should have)This is by design.

Search files / directories only option

This can be added.

Show only results to ftp window Hide non matching files or directories from the ftp window.

I am not sure if this would fit in well with the intended behavior of the find feature. Since with find you find one and maybe the next.

Where-as hiding all non-matches is more of a one shot deal.

There might be another way for us to add a similar feature via a raw command macro, we already have a /hide <pattern> macro that hides items matching the pattern, we could add a way to invert the logic to hide non-matches.

andreas
10-04-2015, 10:24 AM
Find previous: Yes, probably it can un-select the last one. The important feature is to focusthe window to the correct position. For example:
I have a directory listing with 2000 items. I search a word, and it match the 1st, 10th and 1000 item.
Each time I press Search the last item in the window focus on the next match.

To go back I have to search manually, and move from 1000th to 100th item.
And this can be escalate really fast & bad :(

Preferences > Interface > Color Probably here you can allow users to set a more intense color for search matches :cool:


Do you mean the search query text, like a drop-down box allowing you to select a previous search instead of having to re-enter it?


A short history of last 10 queries would be great.
It would be even better if all there are also encrypted (like sites.dat)


What I actually mean:
I make a search, I press F3 until I match all.
Can I get a list (plaintext) with all matches?

bigstar
10-06-2015, 10:11 AM
Find Previous: Yes, probably it can un-select the last one. The important feature is to focusthe window to the correct position.

Due to the way the find feature works, I've run into some unexpected difficulties adding this feature. As a result this will take longer than expected to add.

color for search matches
The only problem with this is that it would also need setting to turn the feature on/off.

A short history of last 10 queries would be great.
It would be even better if all there are also encrypted (like sites.dat)

A history could be added but it would not be encrypted, since it would have to be stored in the FlashFXP.ini

I make a search, I press F3 until I match all.
Can I get a list (plaintext) with all matches?

I think this might be a very specific feature and I am not sure how many users would need/benefit from having this directly.

You could perhaps do this via a raw script after you select all matches using the /writeln command

/writeln "c:\selected.txt" %f


c:\selected.txt would contain a list of the selected file names.

bigstar
10-12-2015, 07:57 AM
I added Ctrl+F3 to find previous, please give it a try and let me know how it works for you.

Also I added a way to colorize the results of a find, but its a bit more involved than simply setting the color.
From the main menu > Options > Filters > Highlights
Make sure Highlights are enabled, there's a checkbox below the list.
Now Add a new mask @find@ and give it the desired color.

The special @find@ mask is defined internally and maps to the text entered in the find dialog highlighting your matches.

andreas
10-12-2015, 08:04 AM
It works, but it marks the text instead of the background

bigstar
10-12-2015, 01:35 PM
It works, but it marks the text instead of the background

Yes this is correct.

There are some limitations with using custom item background colors, specifically the custom background color is lost when the item is selected. Only non-selected items support a custom background color.

In the past I spent many hours trying to solve this but was not able to work around it.

It is my understanding that the problem is caused by windows themes and to solve it the entire content must be custom drawn, which creates new and perhaps even more complex problems.