-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Search everywhere if no matches #16
Comments
I suggest you try the AutoTypeSearch plugin, at leeast this would be my preference compared to adding something similar to my plugin. Of course feel free to add a pull request and I'll review it. If you want to implement "search everywhere" like you described, you should
Up to you: If an entry is found, which auto-type sequences should be shown? The default one for the found entry? All existing? For all found entries, you need to read all fields that correspond to the columns shown in the Auto-Type window and rebuild the list that KeePass shows for potential grouping..
m_host is an attribute in my plugin, the rest is provided by KeePass, see also https://keepass.info/help/v2_dev/plg_index.html |
@Rookiestyle thanks for the feedback. I have already checked out the source code of your plugin and would like to thank you for pointing out where code changes are needed. I know about AutoTypeSearch plugin, and I am using it, but in the case of future use of Linux + Wayland I will not be able to use both extensions for convenient autocomplete, and choosing between adding functionality to AutoTypeSearch and adding functionality to AdvancedAutoType I chose the second one.
I'm not really sure what you're talking about. I already have two GitHub accounts and both in your plugin are mapped separately from each other using whatever AutoTypeSequence they have been assigned. I think the answer is "The default one for the for each found entry", but I am open to discuss this part of the implementation. |
I've come to think that searching via
After clicking on the button with the text "turn on search everywhere" will change the search logic, spreading the search to all bases open bases in KeePass, the button itself will be hidden after clicking. Is my idea clear? My first language is not English, and I am ready for clarification or revision of the implementation. |
Why not, just asking out of curiosity?
When you edit an entry you'll see a tab named Auto-Type. Here you can add additional sequences that will be shown as well if the criteria is met. In you're use case, the entry is not found at all.
Yes and I'll happily accept a pull request that implements that. |
I had a look at AutoTypeSearch and I like it's implementation, especially the threading approach because searching all databases will take time. If references need to be resolved, this becomes even more important. From what I understand the following is possible already today Scenario 1 Scenario 2 Scenario 3 Wouldn't this be sufficient? |
User experience is important to me, and I've been using
Responding to a previous message from you:
I have never used this option either (no kidding :D) |
Summary
At the moment, if auto-type has occurred, but there are no records in the database, then searching (filtering) from the Advanced Auto Type menu does not result in anything. I suggest adding a "Search everywhere" option, which will work if you enter a string starting with "!!!" in the TextBox for filtering, e.g. "!!github".
Example: auto-type was executed in a browser window on the GitHub tab, but the entry "github" was not found among the records matched. In this case, a search in the TextBox to filter "!!github" will find all records containing github in the record name or username field of the record.
I can do it myself and put it in the form of a pull request. If there are hints and ideas how to implement it in detail, I will be grateful.
Added value
In case of using KeePass Password Safe 2 on Linux under Wayland, search is the only option, because under Wayland there is currently no way to get the window header, but you don't want to search and copy manually from keepass search at main window, this change will be an option and soften the transition to Linux for many users. For Windows users, the benefit is that they don't have to waste time leaving the Auto Type window and searching the database, they will be able to search directly from the Auto Type window.
Example
TODO.
The text was updated successfully, but these errors were encountered: