aboutsummaryrefslogtreecommitdiffstats
path: root/tagit
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-07 16:02:33 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-07 16:02:33 +0100
commit3aebfcba6afd5a882f02e55e442580fe0290c776 (patch)
treee4af34a336880e8779cdace605a4d6472022531c /tagit
parent6b6495b8f5b3bfd8fbd4caf56a44424df070e813 (diff)
downloadtagit-3aebfcba6afd5a882f02e55e442580fe0290c776.tar.gz
tagit-3aebfcba6afd5a882f02e55e442580fe0290c776.tar.bz2
tagit-3aebfcba6afd5a882f02e55e442580fe0290c776.zip
pin to port config
Diffstat (limited to 'tagit')
-rw-r--r--tagit/apps/desktop.py8
-rw-r--r--tagit/apps/port-config.yaml112
2 files changed, 118 insertions, 2 deletions
diff --git a/tagit/apps/desktop.py b/tagit/apps/desktop.py
index 21a610c..763439c 100644
--- a/tagit/apps/desktop.py
+++ b/tagit/apps/desktop.py
@@ -5,6 +5,7 @@ A copy of the license is provided with the project.
Author: Matthias Baumgartner, 2022
"""
# standard imports
+import os
import typing
# kivy imports
@@ -34,8 +35,11 @@ class TagitApp(App):
# FIXME: mb/port
# load essentials
- from tagit.config.loader import load_settings, TAGITRC
- cfg = load_settings(TAGITRC, 0)
+
+ #from tagit.config.loader import load_settings, TAGITRC
+ #cfg = load_settings(TAGITRC, 0)
+ from tagit.config import Settings
+ cfg = Settings.Open(os.path.join(os.path.dirname(__file__), 'port-config.yaml'))
# create widget
return desktop.MainWindow(cfg, None, None) # FIXME: expects cfg, stor, log arguments
diff --git a/tagit/apps/port-config.yaml b/tagit/apps/port-config.yaml
new file mode 100644
index 0000000..ac0d242
--- /dev/null
+++ b/tagit/apps/port-config.yaml
@@ -0,0 +1,112 @@
+session:
+ first_start: false
+ paths:
+ searchlog: ~/.tagit.log
+storage:
+ index:
+ preview_size:
+ - 50
+ - 200
+ - 400
+ui:
+ standalone:
+ plane: browsing
+ browser:
+ maxcols: 8
+ maxrows: 8
+ buttondocks:
+ sidebar_left: []
+ #- Menu
+ #- ShowDashboard
+ #- AddTag
+ #- EditTag
+ #- CreateGroup
+ #- DissolveGroup
+ #- SelectAll
+ #- SelectNone
+ #- SelectInvert
+ #- SelectAdditive
+ #- SelectSubtractive
+ #- SelectSingle
+ #- SelectMulti
+ #- SelectRange
+ context:
+ app:
+ - ShowSettings
+ - ShowHelp
+ - ShowConsole
+ - ShowBrowsing
+ # browser:
+ # - ZoomIn
+ # - ZoomOut
+ # clipboard:
+ # - ClipboardCopy
+ # - ClipboardPaste
+ # grouping:
+ # - CreateGroup
+ # - DissolveGroup
+ # - AddToGroup
+ # - RepresentGroup
+ # - RemoveFromGroup
+ # root:
+ # - CloseSessionAndExit
+ # search:
+ # - ShowSelected
+ # - RemoveSelected
+ # select:
+ # - SelectAll
+ # - SelectNone
+ # - SelectInvert
+ # - SelectSingle
+ # - SelectMulti
+ # - SelectRange
+ # - SelectAdditive
+ # - SelectSubtractive
+ # session:
+ # - SaveSession
+ # - SaveSessionAs
+ # - ItemExport
+ # - ImportObjects
+ # tagging:
+ # - AddTag
+ # - EditTag
+ # - SetRank1
+ # - SetRank3
+ # - SetRank5
+ search:
+ sort_blacklist:
+ - entity
+ - flash
+ - latitude
+ - longitude
+ - mime
+ - author
+ - camera
+ - attributes
+ tiledocks:
+ dashboard: {}
+ #Buttons:
+ # buttons:
+ # - ShowBrowsing
+ # - CreateSession
+ # - CreateTempSession
+ # - LoadSession
+ # - ReloadSession
+ # - ImportObjects
+ # - SaveSession
+ # - SaveSessionAs
+ # - ItemExport
+ # - UpdateSelectedObjects
+ # - SyncSelectedObjects
+ # - ShowHelp
+ # - ShowSettings
+ #Hints: {}
+ #LibSummary: {}
+ #Searchtree: {}
+ #TagHistogram: {}
+ #Tagcloud: {}
+ sidebar_right: {}
+ #CursorTags: {}
+ #Info: {}
+ #Venn: {}
+ window_size: 1024x768