diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-04 15:58:43 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-04 15:58:43 +0100 |
commit | 9bdf4d104a299577634061bcf698d1c9e5708cce (patch) | |
tree | 64f030cef7d63a7fa80f61b5729c41e14c66d440 /tagit/apps | |
parent | b5746fd9d49ade49ea77f10010bbabe8da8656d0 (diff) | |
download | tagit-9bdf4d104a299577634061bcf698d1c9e5708cce.tar.gz tagit-9bdf4d104a299577634061bcf698d1c9e5708cce.tar.bz2 tagit-9bdf4d104a299577634061bcf698d1c9e5708cce.zip |
config loading
Diffstat (limited to 'tagit/apps')
-rw-r--r-- | tagit/apps/desktop.py | 8 | ||||
-rw-r--r-- | tagit/apps/port-config.yaml | 151 |
2 files changed, 3 insertions, 156 deletions
diff --git a/tagit/apps/desktop.py b/tagit/apps/desktop.py index 7b21336..b02c8f1 100644 --- a/tagit/apps/desktop.py +++ b/tagit/apps/desktop.py @@ -36,12 +36,10 @@ class TagitApp(App): # set title self.title = 'tagit v2.0' - # FIXME: mb/port - # load essentials + # load config + 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) - cfg = config.Settings.Open(os.path.join(os.path.dirname(__file__), 'port-config.yaml')) # FIXME: mb/port/bsfs # open BSFS storage diff --git a/tagit/apps/port-config.yaml b/tagit/apps/port-config.yaml deleted file mode 100644 index 323d616..0000000 --- a/tagit/apps/port-config.yaml +++ /dev/null @@ -1,151 +0,0 @@ -session: - first_start: false - paths: - searchlog: ~/.tagit.log - bsfs: # FIXME: mb/port: rename to storage, but that space is currently polluted - Graph: - backend: - SparqlStore: {} - user: 'http://example.com/me' - script: [] - #- ShowBrowsing - #- [AddToken, 'hello'] -storage: - index: - preview_size: - - 50 - - 200 - - 400 -ui: - standalone: - window_size: [1024, 768] - maximize: True - keytriggers: - #- ClipboardCopy - #- ClipboardPaste - - CreateGroup - - DissolveGroup - - AddToGroup - - MoveCursorUp - - MoveCursorDown - - MoveCursorLeft - - MoveCursorRight - - MoveCursorLast - - MoveCursorFirst - - NextPage - - PreviousPage - - ScrollDown - - ScrollUp - - ZoomIn - - ZoomOut - - Select - - SelectAll - - SelectNone - - SelectMulti - - SelectRange - - AddToken - - GoBack - - GoForth - - SearchByAddressOnce - - SearchmodeSwitch - - AddTag - - EditTag - - OpenGroup - #- RepresentGroup - - Search - - ShowSelected - - RemoveSelected - - OpenExternal - - ShowHelp - browser: - cols: 4 - rows: 3 - maxcols: 8 - maxrows: 8 - #gridmode: 'list' - buttondocks: - navigation_left: - - MoveCursorFirst - - PreviousPage - - ScrollUp - navigation_right: - - NextPage - - ScrollDown - - MoveCursorLast - filter: - - GoBack - - GoForth - status: - - ZoomIn - - ZoomOut - #- RotateLeft - #- DeleteObject - #- RotateRight - sidebar_left: - - Menu - - AddTag - - EditTag - - ShowSelected - - RemoveSelected - #- CreateGroup - #- DissolveGroup - - SelectAll - - SelectNone - - SelectInvert - - SelectAdditive - - SelectSubtractive - - SelectSingle - - SelectMulti - - SelectRange - context: - app: - - LoadSession - - ShowHelp - - ShowConsole - - ShellDrop - - ShowSettings - browser: - - ZoomIn - - ZoomOut - # clipboard: - # - ClipboardCopy - # - ClipboardPaste - grouping: - - CreateGroup - - DissolveGroup - - AddToGroup - # - RepresentGroup - # - RemoveFromGroup - search: - - ShowSelected - - RemoveSelected - - GoForth - - GoBack - select: - - SelectAll - - SelectNone - - SelectInvert - - SelectSingle - - SelectMulti - - SelectRange - - SelectAdditive - - SelectSubtractive - tagging: - - AddTag - - EditTag - # - SetRank1 - # - SetRank3 - # - SetRank5 - search: - sort_blacklist: - - entity - - flash - - latitude - - longitude - - mime - - author - - camera - - attributes - tiledocks: - sidebar_right: - Info: {} |