findInFiles #1

Merged
andi merged 6 commits from findInFiles into master 2022-08-23 11:52:02 +00:00
4 changed files with 136 additions and 77 deletions
Showing only changes of commit 7e0d13529a - Show all commits

View File

@@ -5,80 +5,104 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: RavenLog\n" "Project-Id-Version: RavenLog\n"
"POT-Creation-Date: 2022-02-12 10:14+0100\n" "POT-Creation-Date: 2022-08-21 09:51+0200\n"
"PO-Revision-Date: 2022-02-12 10:17+0100\n" "PO-Revision-Date: 2022-08-21 09:58+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: de\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 2.3\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 3.0.1\n"
#: src/mainwindow.py:39 src/plugins/krowlog/aboutdialog.py:23 #: src/mainwindow.py:34 src/plugins/krowlog/aboutdialog.py:24
#: src/plugins/krowlogplugin.py:85 #: src/plugins/krowlogplugin.py:85
msgid "KrowLog" msgid "KrowLog"
msgstr "KrowLog" msgstr "KrowLog"
#: src/mainwindow.py:47 src/plugins/openfileplugin.py:29 #: src/mainwindow.py:42 src/plugins/openfileplugin.py:30
msgid "Open &Recent" msgid "Open &Recent"
msgstr "Zu&letzt geöffnete Dateien" msgstr "Zu&letzt geöffnete Dateien"
#: src/mainwindow.py:66 #: src/mainwindow.py:64
msgid "&File" msgid "&File"
msgstr "&Datei" msgstr "&Datei"
#: src/mainwindow.py:67 #: src/mainwindow.py:65
msgid "&Settings" msgid "&Settings"
msgstr "&Einstellungen" msgstr "&Einstellungen"
#: src/mainwindow.py:68 #: src/mainwindow.py:66
msgid "&Window" msgid "&Window"
msgstr "&Fenster" msgstr "&Fenster"
#: src/mainwindow.py:69 #: src/mainwindow.py:67
msgid "&Help" msgid "&Help"
msgstr "&Hilfe" msgstr "&Hilfe"
#: src/mainwindow.py:101 src/ui/bigtext/bigtext.py:187 #: src/mainwindow.py:99 src/ui/bigtext/bigtext.py:188
msgid "&Highlighter" msgid "&Highlighter"
msgstr "&Hervorhebungen" msgstr "&Hervorhebungen"
#: src/mainwindow.py:108 #: src/mainwindow.py:106
msgid "Highlight &Searches" msgid "Highlight &Searches"
msgstr "&Suchtreffer Hervorheben" msgstr "&Suchtreffer Hervorheben"
#: src/mainwindow.py:116 #: src/mainwindow.py:114
msgid "Open Tab on Save As File" msgid "Open Tab on Save As File"
msgstr "Öffne neues Tab wenn Selektion als neue Datei gespeichert wird" msgstr "Öffne neues Tab wenn Selektion als neue Datei gespeichert wird"
#: src/plugins/krowlog/aboutdialog.py:18 #: src/plugins/findInFiles/findinfileswidget.py:37
msgid "Focus on current file"
msgstr "Auf aktuelle Datei fokussieren"
#: src/plugins/findInFiles/findinfileswidget.py:40
msgid "Folder:"
msgstr "Ordner:"
#: src/plugins/findInFiles/findinfileswidget.py:45
msgid "Filter:"
msgstr "Filter:"
#: src/plugins/findInFiles/findinfileswidget.py:83
msgid "Open Directory"
msgstr "Ordner öffnen"
#: src/plugins/findinfilesplugin.py:31
msgid "&Find In Files"
msgstr "In &Dateien Suchen"
#: src/plugins/findinfilesplugin.py:37
msgid "Find In Files"
msgstr "In Dateien Suchen"
#: src/plugins/krowlog/aboutdialog.py:19
msgid "About KrowLog" msgid "About KrowLog"
msgstr "Über KrowLog" msgstr "Über KrowLog"
#: src/plugins/krowlog/aboutdialog.py:28 #: src/plugins/krowlog/aboutdialog.py:29
msgid "Version: {0}" msgid "Version: {0}"
msgstr "Version: {0}" msgstr "Version: {0}"
#: src/plugins/krowlog/aboutdialog.py:43 #: src/plugins/krowlog/aboutdialog.py:44
msgid "About" msgid "About"
msgstr "Über KrowLog" msgstr "Über KrowLog"
#: src/plugins/krowlog/aboutdialog.py:44 #: src/plugins/krowlog/aboutdialog.py:45
msgid "License" msgid "License"
msgstr "Lizenz" msgstr "Lizenz"
#: src/plugins/krowlog/aboutdialog.py:57 #: src/plugins/krowlog/aboutdialog.py:58
msgid "Log file viewer" msgid "Log file viewer"
msgstr "Betrachter für Logdateien" msgstr "Betrachter für Logdateien"
#: src/plugins/krowlog/aboutdialog.py:58 #: src/plugins/krowlog/aboutdialog.py:59
msgid "(c) 2022 Andreas Huber" msgid "(c) 2022 Andreas Huber"
msgstr "(c) 2022 Andreas Huber" msgstr "(c) 2022 Andreas Huber"
#: src/plugins/krowlog/aboutdialog.py:59 #: src/plugins/krowlog/aboutdialog.py:60
msgid "License: LGPL v3" msgid "License: LGPL v3"
msgstr "Lizenz: LGPL v3" msgstr "Lizenz: LGPL v3"
@@ -122,71 +146,75 @@ msgstr "&Über KrowLog"
msgid "E&xit" msgid "E&xit"
msgstr "&Beenden" msgstr "&Beenden"
#: src/plugins/logfile/filterwidget.py:134 #: src/plugins/logfile/filterwidget.py:137
msgid "Cancel" msgid "Cancel"
msgstr "Abbrechen" msgstr "Abbrechen"
#: src/plugins/logfile/filterwidget.py:138 #: src/plugins/logfile/filterwidget.py:143
msgid "save query"
msgstr "suche speichern"
#: src/plugins/logfile/filterwidget.py:148
msgid "ignore case" msgid "ignore case"
msgstr "Groß-/Kleinschreibung ignorieren" msgstr "Groß-/Kleinschreibung ignorieren"
#: src/plugins/logfile/filterwidget.py:142 #: src/plugins/logfile/filterwidget.py:152
msgid "regex" msgid "regex"
msgstr "RegExp" msgstr "RegExp"
#: src/plugins/logfileplugin.py:25 #: src/plugins/logfileplugin.py:26
msgid "File not found" msgid "File not found"
msgstr "Datei nicht gefunden" msgstr "Datei nicht gefunden"
#: src/plugins/logfileplugin.py:26 #: src/plugins/logfileplugin.py:27
msgid "'{0}' is not a file or cannot be opened" msgid "'{0}' is not a file or cannot be opened"
msgstr "'{0}' ist keine Datei oder kann nicht geöffnet werden" msgstr "'{0}' ist keine Datei oder kann nicht geöffnet werden"
#: src/plugins/notesplugin.py:25 #: src/plugins/notesplugin.py:24
msgid "Add &Notes" msgid "&Notes"
msgstr "&Notizen Hinzufügen" msgstr "&Notizen"
#: src/plugins/notesplugin.py:33 #: src/plugins/notesplugin.py:32
msgid "Notes {0}" msgid "Notes {0}"
msgstr "Notizen {0}" msgstr "Notizen {0}"
#: src/plugins/openfileplugin.py:24 #: src/plugins/openfileplugin.py:25
msgid "&Open..." msgid "&Open..."
msgstr "&Öffnen..." msgstr "&Öffnen..."
#: src/plugins/openfileplugin.py:45 #: src/plugins/openfileplugin.py:46
msgid "Open File" msgid "Open File"
msgstr "Öffne Datei" msgstr "Öffne Datei"
#: src/ui/bigtext/bigtext.py:170 #: src/ui/bigtext/bigtext.py:171
msgid "&Copy to Clipboard" msgid "&Copy to Clipboard"
msgstr "In Zwischenablage &Kopieren" msgstr "In Zwischenablage &Kopieren"
#: src/ui/bigtext/bigtext.py:176 #: src/ui/bigtext/bigtext.py:177
msgid "Copy to &File" msgid "Copy to &File"
msgstr "In &Datei Kopieren" msgstr "In &Datei Kopieren"
#: src/ui/bigtext/bigtext.py:181 #: src/ui/bigtext/bigtext.py:182
msgid "Select &All" msgid "Select &All"
msgstr "&Alles Selektieren" msgstr "&Alles Selektieren"
#: src/ui/bigtext/bigtext.py:331 #: src/ui/bigtext/bigtext.py:332
msgid "data selection" msgid "data selection"
msgstr "selektion" msgstr "selektion"
#: src/ui/bigtext/bigtext.py:332 #: src/ui/bigtext/bigtext.py:333
msgid "You have selected <b>{0}</b> of data." msgid "You have selected <b>{0}</b> of data."
msgstr "Du hast <b>{0}</b> selektiert." msgstr "Du hast <b>{0}</b> selektiert."
#: src/ui/bigtext/bigtext.py:335 #: src/ui/bigtext/bigtext.py:336
msgid "Copy {0} to Clipboard" msgid "Copy {0} to Clipboard"
msgstr "Kopiere {0} in die Zwischenablage" msgstr "Kopiere {0} in die Zwischenablage"
#: src/ui/bigtext/bigtext.py:337 #: src/ui/bigtext/bigtext.py:338
msgid "Write to File" msgid "Write to File"
msgstr "Schreibe in Datei" msgstr "Schreibe in Datei"
#: src/ui/bigtext/bigtext.py:359 #: src/ui/bigtext/bigtext.py:360
msgid "Save File" msgid "Save File"
msgstr "Speichere Datei" msgstr "Speichere Datei"

View File

@@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2022-02-12 10:14+0100\n" "POT-Creation-Date: 2022-08-21 09:51+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -15,68 +15,92 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: src/mainwindow.py:39 src/plugins/krowlog/aboutdialog.py:23 #: src/mainwindow.py:34 src/plugins/krowlog/aboutdialog.py:24
#: src/plugins/krowlogplugin.py:85 #: src/plugins/krowlogplugin.py:85
msgid "KrowLog" msgid "KrowLog"
msgstr "" msgstr ""
#: src/mainwindow.py:47 src/plugins/openfileplugin.py:29 #: src/mainwindow.py:42 src/plugins/openfileplugin.py:30
msgid "Open &Recent" msgid "Open &Recent"
msgstr "" msgstr ""
#: src/mainwindow.py:66 #: src/mainwindow.py:64
msgid "&File" msgid "&File"
msgstr "" msgstr ""
#: src/mainwindow.py:67 #: src/mainwindow.py:65
msgid "&Settings" msgid "&Settings"
msgstr "" msgstr ""
#: src/mainwindow.py:68 #: src/mainwindow.py:66
msgid "&Window" msgid "&Window"
msgstr "" msgstr ""
#: src/mainwindow.py:69 #: src/mainwindow.py:67
msgid "&Help" msgid "&Help"
msgstr "" msgstr ""
#: src/mainwindow.py:101 src/ui/bigtext/bigtext.py:187 #: src/mainwindow.py:99 src/ui/bigtext/bigtext.py:188
msgid "&Highlighter" msgid "&Highlighter"
msgstr "" msgstr ""
#: src/mainwindow.py:108 #: src/mainwindow.py:106
msgid "Highlight &Searches" msgid "Highlight &Searches"
msgstr "" msgstr ""
#: src/mainwindow.py:116 #: src/mainwindow.py:114
msgid "Open Tab on Save As File" msgid "Open Tab on Save As File"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:18 #: src/plugins/findInFiles/findinfileswidget.py:37
msgid "Focus on current file"
msgstr ""
#: src/plugins/findInFiles/findinfileswidget.py:40
msgid "Folder:"
msgstr ""
#: src/plugins/findInFiles/findinfileswidget.py:45
msgid "Filter:"
msgstr ""
#: src/plugins/findInFiles/findinfileswidget.py:83
msgid "Open Directory"
msgstr ""
#: src/plugins/findinfilesplugin.py:31
msgid "&Find In Files"
msgstr ""
#: src/plugins/findinfilesplugin.py:37
msgid "Find In Files"
msgstr ""
#: src/plugins/krowlog/aboutdialog.py:19
msgid "About KrowLog" msgid "About KrowLog"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:28 #: src/plugins/krowlog/aboutdialog.py:29
msgid "Version: {0}" msgid "Version: {0}"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:43 #: src/plugins/krowlog/aboutdialog.py:44
msgid "About" msgid "About"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:44 #: src/plugins/krowlog/aboutdialog.py:45
msgid "License" msgid "License"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:57 #: src/plugins/krowlog/aboutdialog.py:58
msgid "Log file viewer" msgid "Log file viewer"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:58 #: src/plugins/krowlog/aboutdialog.py:59
msgid "(c) 2022 Andreas Huber" msgid "(c) 2022 Andreas Huber"
msgstr "" msgstr ""
#: src/plugins/krowlog/aboutdialog.py:59 #: src/plugins/krowlog/aboutdialog.py:60
msgid "License: LGPL v3" msgid "License: LGPL v3"
msgstr "" msgstr ""
@@ -116,71 +140,79 @@ msgstr ""
msgid "E&xit" msgid "E&xit"
msgstr "" msgstr ""
#: src/plugins/logfile/filterwidget.py:134 #: src/plugins/logfile/filterwidget.py:137
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/plugins/logfile/filterwidget.py:138 #: src/plugins/logfile/filterwidget.py:143
msgid "save query"
msgstr ""
#: src/plugins/logfile/filterwidget.py:148
msgid "ignore case" msgid "ignore case"
msgstr "" msgstr ""
#: src/plugins/logfile/filterwidget.py:142 #: src/plugins/logfile/filterwidget.py:152
msgid "regex" msgid "regex"
msgstr "" msgstr ""
#: src/plugins/logfileplugin.py:25 #: src/plugins/logfileplugin.py:26
msgid "File not found" msgid "File not found"
msgstr "" msgstr ""
#: src/plugins/logfileplugin.py:26 #: src/plugins/logfileplugin.py:27
msgid "'{0}' is not a file or cannot be opened" msgid "'{0}' is not a file or cannot be opened"
msgstr "" msgstr ""
#: src/plugins/notesplugin.py:25 #: src/plugins/notesplugin.py:24
msgid "Add &Notes" msgid "&Notes"
msgstr "" msgstr ""
#: src/plugins/notesplugin.py:33 #: src/plugins/notesplugin.py:32
msgid "Notes {0}" msgid "Notes {0}"
msgstr "" msgstr ""
#: src/plugins/openfileplugin.py:24 #: src/plugins/openfileplugin.py:25
msgid "&Open..." msgid "&Open..."
msgstr "" msgstr ""
#: src/plugins/openfileplugin.py:45 #: src/plugins/openfileplugin.py:46
msgid "Open File" msgid "Open File"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:170 #: src/plugins/timediffplugin.py:17
msgid ""
msgstr ""
#: src/ui/bigtext/bigtext.py:171
msgid "&Copy to Clipboard" msgid "&Copy to Clipboard"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:176 #: src/ui/bigtext/bigtext.py:177
msgid "Copy to &File" msgid "Copy to &File"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:181 #: src/ui/bigtext/bigtext.py:182
msgid "Select &All" msgid "Select &All"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:331 #: src/ui/bigtext/bigtext.py:332
msgid "data selection" msgid "data selection"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:332 #: src/ui/bigtext/bigtext.py:333
msgid "You have selected <b>{0}</b> of data." msgid "You have selected <b>{0}</b> of data."
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:335 #: src/ui/bigtext/bigtext.py:336
msgid "Copy {0} to Clipboard" msgid "Copy {0} to Clipboard"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:337 #: src/ui/bigtext/bigtext.py:338
msgid "Write to File" msgid "Write to File"
msgstr "" msgstr ""
#: src/ui/bigtext/bigtext.py:359 #: src/ui/bigtext/bigtext.py:360
msgid "Save File" msgid "Save File"
msgstr "" msgstr ""

View File

@@ -1,14 +1,13 @@
import glob
import os import os
import sys import sys
from pathlib import Path from pathlib import Path
from PySide6.QtCore import QDir, QModelIndex from PySide6.QtCore import QDir, QModelIndex
from PySide6.QtGui import QIcon, QStandardItemModel, QStandardItem from PySide6.QtGui import QIcon
from src.pluginregistry import PluginRegistry from src.pluginregistry import PluginRegistry
from src.plugins.krowlog.Tab import Tab from src.plugins.krowlog.Tab import Tab
from PySide6.QtWidgets import QTextEdit, QVBoxLayout, QLabel, QLineEdit, QPushButton, QFileDialog, QTreeView, \ from PySide6.QtWidgets import QVBoxLayout, QLabel, QLineEdit, QPushButton, QFileDialog, QTreeView, \
QFileSystemModel QFileSystemModel
from src.i18n import _ from src.i18n import _
from src.settings.settings import Settings from src.settings.settings import Settings