-
Notifications
You must be signed in to change notification settings - Fork 158
Exclude GUI II (without exclude-if-present) #1846
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6d23f17
feat: exclude gui
diivi b02941c
add and remove patterns from custom table
diivi 63674d1
database integration for adding and removing custom patterns
diivi a4d9229
complete custom presets tab frontend
diivi ee90c7c
remove unnecessary array dependency
diivi e3a9dc8
custom presets
diivi 0e589a0
remove all leading slashes and work on code review
diivi 5cb4a7b
pass the exclusions to borg!
diivi 62e5d62
add migration for raw exclusions field
diivi 5d03094
review changes: context menu, remove save button for raw text, copy t…
diivi 02c0f97
qdialogbuttonbox close
diivi 4551896
test
diivi ba3c91d
sort presets
diivi 4941360
change help texts
diivi 57178e6
help text formatting to pass tests
diivi 289625d
use translate method
diivi bf84368
yf-projects Help text suggestions
diivi 44cd6c9
make context menu work for multiple items
diivi 7f2997c
delete custom items with the delete key
diivi c93b90e
make main window uninteractable when the exclude dialog opens
diivi 53eda39
show a default exclusion
diivi efa054c
convert old exclude patterns to new objects
diivi 308e16b
handle integrity error during migration and allow selecting multiple …
diivi 9cae9f6
reduce item padding
diivi 9f5736a
remove styling from elements and add back exclude_if_present box
diivi db8a9a6
Remove Exclude if present text field
m3nu 2e5c15b
Fix home folder expansion, fix exclude pattern unique setting
m3nu 1aee6bf
Fix issue with keeping exclusion settings in sync, fix loading exclus…
m3nu b3ec607
Lint
m3nu d5efa58
Use slug to identify exclusion presets
m3nu 64e356e
Remove unrelated changes
m3nu 15e1ee7
Ignore exclude-if-present for now
m3nu 3a12144
Set fm matcher for exclusions, some exclusions more specific
m3nu f1bd6e1
Log missing exclusion
m3nu 8d4fbe1
Remove duplicate row before error message
m3nu 72572e1
Merge branch 'master' into exclude-gui-2
m3nu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Dialog</class> | ||
<widget class="QDialog" name="Dialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>504</width> | ||
<height>426</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Add patterns to exclude</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<property name="topMargin"> | ||
<number>10</number> | ||
</property> | ||
<item> | ||
<widget class="QTabWidget" name="tabWidget"> | ||
<property name="currentIndex"> | ||
<number>0</number> | ||
</property> | ||
<widget class="QWidget" name="tab"> | ||
<attribute name="title"> | ||
<string>Custom</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_3"> | ||
<item> | ||
<widget class="QLabel" name="customPresetsHelpText"> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QListView" name="customExclusionsList"/> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="bAddPattern"/> | ||
</item> | ||
<item> | ||
<widget class="QToolButton" name="bRemovePattern"/> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="tab_2"> | ||
<attribute name="title"> | ||
<string>Presets</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_3"> | ||
<item> | ||
<widget class="QLabel" name="exclusionPresetsHelpText"> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QListView" name="exclusionPresetsList"/> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="tab_4"> | ||
<attribute name="title"> | ||
<string>Raw</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_4"> | ||
<item> | ||
<widget class="QLabel" name="rawExclusionsHelpText"> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPlainTextEdit" name="rawExclusionsText"/> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QWidget" name="tab_3"> | ||
<attribute name="title"> | ||
<string>Preview</string> | ||
</attribute> | ||
<layout class="QVBoxLayout" name="verticalLayout_4"> | ||
<item> | ||
<widget class="QLabel" name="exclusionsPreviewHelpText"> | ||
<property name="wordWrap"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPlainTextEdit" name="exclusionsPreviewText"/> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout_3"> | ||
<item> | ||
<spacer name="horizontalSpacer_3"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="bPreviewCopy"> | ||
<property name="text"> | ||
<string>Copy to Clipboard</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Close</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[ | ||
{ | ||
"name": "Chromium cache and config files", | ||
"slug": "chromium-cache", | ||
"patterns": | ||
[ | ||
"fm:*/.config/chromium/*/Local Storage", | ||
"fm:*/.config/chromium/*/Session Storage", | ||
"fm:*/.config/chromium/*/Service Worker/CacheStorage", | ||
"fm:*/.config/chromium/*/Application Cache", | ||
"fm:*/.config/chromium/*/History Index *", | ||
"fm:*/snap/chromium/common/.cache", | ||
"fm:*/snap/chromium/*/.config/chromium/*/Service Worker/CacheStorage", | ||
"fm:*/snap/chromium/*/.local/share/" | ||
], | ||
"tags":["application:chromium", "type:browser", "os:linux"], | ||
"author": "Divi" | ||
}, | ||
{ | ||
"name": "Google Chrome cache and config files", | ||
"slug": "google-chrome-cache", | ||
"patterns": | ||
[ | ||
"fm:*/.config/google-chrome/ShaderCache", | ||
"fm:*/.config/google-chrome/*/Local Storage", | ||
"fm:*/.config/google-chrome/*/Session Storage", | ||
"fm:*/.config/google-chrome/*/Application Cache", | ||
"fm:*/.config/google-chrome/*/History Index *", | ||
"fm:*/.config/google-chrome/*/Service Worker/CacheStorage" | ||
], | ||
"tags": ["application:chrome", "type:browser", "os:linux"], | ||
"author": "Divi" | ||
}, | ||
{ | ||
"name": "Brave cache and config files", | ||
"slug": "brave-cache", | ||
"patterns":[ | ||
"fm:*/.config/BraveSoftware/Brave-Browser/*/Feature Engagement Tracker/", | ||
"fm:*/.config/BraveSoftware/Brave-Browser/*/Local Storage/", | ||
"fm:*/.config/BraveSoftware/Brave-Browser/*/Service Worker/CacheStorage/", | ||
"fm:*/.config/BraveSoftware/Brave-Browser/*/Session Storage/", | ||
"fm:*/.config/BraveSoftware/Brave-Browser/Safe Browsing/", | ||
"fm:*/.config/BraveSoftware/Brave-Browser/ShaderCache/" | ||
], | ||
"tags": ["application:brave", "type:browser", "os:linux"], | ||
"author": "Divi" | ||
}, | ||
{ | ||
"name": "Mozilla Firefox cache and config files", | ||
"slug": "firefox-cache", | ||
"patterns":[ | ||
"fm:*/.mozilla/firefox/*/Cache", | ||
"fm:*/.mozilla/firefox/*/minidumps", | ||
"fm:*/.mozilla/firefox/*/.parentlock", | ||
"fm:*/.mozilla/firefox/*/urlclassifier3.sqlite", | ||
"fm:*/.mozilla/firefox/*/blocklist.xml", | ||
"fm:*/.mozilla/firefox/*/extensions.sqlite", | ||
"fm:*/.mozilla/firefox/*/extensions.sqlite-journal", | ||
"fm:*/.mozilla/firefox/*/extensions.rdf", | ||
"fm:*/.mozilla/firefox/*/extensions.ini", | ||
"fm:*/.mozilla/firefox/*/extensions.cache", | ||
"fm:*/.mozilla/firefox/*/XUL.mfasl", | ||
"fm:*/.mozilla/firefox/*/XPC.mfasl", | ||
"fm:*/.mozilla/firefox/*/xpti.dat", | ||
"fm:*/.mozilla/firefox/*/compreg.dat", | ||
"fm:*/.mozilla/firefox/*/pluginreg.dat" | ||
], | ||
"tags": ["application:firefox", "type:browser", "os:linux"], | ||
"author": "Divi" | ||
} | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"name": "Node Modules and package manager cache", | ||
"slug": "node-cache", | ||
"patterns": | ||
[ | ||
"fm:*/node_modules", | ||
"fm:*/.npm" | ||
], | ||
"tags": ["type:dev", "lang:javascript", "os:linux", "os:darwin"], | ||
"author": "Divi" | ||
}, | ||
{ | ||
"name": "Python cache and virtualenv", | ||
"slug": "python-cache", | ||
"patterns": | ||
[ | ||
"fm:*/__pycache__", | ||
"fm:*.pyc", | ||
"fm:*.pyo", | ||
"fm:*/.virtualenvs" | ||
], | ||
"tags": ["type:dev", "lang:python", "os:linux", "os:darwin"], | ||
"author": "Divi" | ||
}, | ||
{ | ||
"name": "Rust artefacts", | ||
"slug": "rust-artefacts", | ||
"patterns": | ||
[ | ||
"fm:*/.cargo", | ||
"fm:*/.rustup" | ||
], | ||
"tags": ["type:dev", "lang:rust", "os:linux", "os:darwin"], | ||
"author": "Divi" | ||
} | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.