KeePass Notes Search Plugin (Innerhalb der Kommentare suchen / search within notes field)
Weil ich die Funktion zum Suchen innerhalb des KeePass Kommentar-Feldes dringend benötigte habe ich mich (zusammen mit ChatGPT 3.5) mal 4 Stunden hingesetzt und ein Plugin für KeePass geschrieben mit dem man in den Kommentaren nach einem Suchtext suchen kann und dieser rot markiert wird wenn er gefunden wurde.
English version below!
KeePass NotesSearch Plugin Version 1.2 download:
NotesSearch Plugin (NotesSearchPlugin.dll) | |
Verschlüsselte Version falls ihr Probleme habt die DLL durch eure Firewall zu bekommen. Passwort zur Entschlüsselung: notessearch | |
NotesSearchPlugin.cs & AssemblyInfo.cs |
>> Das Plugin ist seit 07.09.2023 auch auf der offiziellen KeePass Plugins Homepage von Dominik Reichl gelistet.
Release Notes
V1.2 (25.09.2023)
>> Search-as-you-type hinzugefügt (es wird sofort gesucht sobald Suchtext eingeben wird)
bitte beachten: wird der Suchtext in einer URL/Link gefunden dann wird die Zeile ganz oben angezeigt jedoch nicht rot markiert
V1.1 (14.09.2023)
>> Schriftartgröße im Kommentarfeld um 15% erhöht und das Suchfeld um 50%
>> entfernen von Leerzeichen vor und hinter dem Suchtext (trim)
V1.0 (07.09.2023)
>> Erster release
Zur Installation einfach die Datei NotesSearchPlugin.dll wie auf der KeePass-Seite beschrieben importieren (Danke an Dominik Reichl)
Nachdem KeePass neu gestartet wurde kann man über einen Rechts-Klick auf einen Eintrag im Menü „NotesSearch“ auswählen …
Es erscheint das Suchfenster …
Sobald du die ersten Zeichen des Suchtextes eingegeben hast wird die gefundene Zeile angezeigt (search-as-you-type). Wenn du ganz von Anfang des Kommentars suchen willst klicke auf „Search from top“ (1) oder Alt-W damit wird immer nur das erste Vorkommen des Suchtextes im Kommentar gefunden und rot markiert (4). Bei „Search from top (Alt-W)“ wird immer ganz oben angefangen zu suchen, dies ist bei Änderung des Suchtextes wichtig um alle Vorkommnisse zu finden.
Wenn der Suchtext innerhalb einer URL gefunden wird wird dieser nicht rot markiert sondern nur in der obersten Zeile angezeigt.
Anschließend kann man mit „Search next“ oder Alt-S zum nächsten Vorkommen des Suchtextes springen welches dann ebenfalls rot markiert wird. Wenn kein Suchtext mehr gefunden wird erscheint die Meldung „No further occurrences of the search text were found!„
Innerhalb des Kommentars können sie beliebigen Text markieren und mit Strg-C kopieren.
ACHTUNG:
>> Bitte beachte dass alle Informationen die darüber in der Zwischenablage landen darin verbleiben bis diese überschrieben/gelöscht werden!
>> Sie können innerhalb des Kommentarfelds auch neuen Text eingeben, dieser wird jedoch NICHT gespeichert!
Zum Beenden einfach oben rechts mit „X“ schließen.
Viel Spaß mit dem Plugin, ich hoffe es hilft dem einen oder anderen 🙂
English
Because I urgently needed a function to search within the KeePass notes field, I spent about 4 hours (together with ChatGPT 3.5) writing a plugin for KeePass that allows you to search for a specific text within notes and if found, mark it in red.
KeePass NotesSearch Plugin Version 1.2 download:
NotesSearch Plugin (NotesSearchPlugin.dll) | |
Encrypted version just in case you have got trouble getting the dll through your firewall. Decryption password: notessearch | |
NotesSearchPlugin.cs & AssemblyInfo.cs |
>> The plugin is also listed on the official KeePass Plugins Homepage of Dominik Reichl since 09/07/2023.
Release Notes
V1.2 (09/25/2023)
>> search-as-you-type added (the searchtext is search as soon as you start typing)
please be aware: if the searchtext is found within a URL / link the text will be shown on the very top of the window but it will not be marked in red
V1.1 (09/14/2023)
>> increase font size of notes field by 15% and the search-text-field by 50%
>> remove any whitespace from the search-text (right/left trim)
V1.0 (09/07/2023)
>> Initial release
To install, simply import the NotesSearchPlugin.dll file as described on the KeePass website (thanks to Dominik Reichl).
After restarting KeePass, you can select „NotesSearch“ from the context menu by right-clicking on an entry …
This will open the search window …
As you type your search text in (3), the first matching line will automatically be found (search-as-you-type). If you want to find the first occurrence click on „Search from top“ (1) or press Alt-W. This will find and highlight the first occurrence of the search text in the notes (4). When using „Search from top,“ it always starts searching from the top, which is important when changing the search text to find all occurrences. If the search text is found within a URL it will not be marked in red, instead it will be display at the top of the notes area.
You can then use „Search next“ or Alt-S to jump to the next occurrence of the search text, which will also be highlighted in red. If no more instances of the search text are found, you will see the message „No further occurrences of the search text were found!„
Within the notes field you can mark any text and copy it with Ctrl-C.
ATTENTION:
>> Please note that all information that ends up on the clipboard remains there until it is overwritten/deleted!
>> You can type within the notes field, but this text will NOT be saved!
To exit, simply close the window using the „X“ in the upper right corner.
Enjoy the plugin, and I hope it helps you and others! 🙂
Keywords: KeePass, plugin, dll, search within notes, search notes plugin, suchen in kommentar, suchen in kommentaren