From 8aac2b389ef3c0bb30836242262a665a36816512 Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 14 Aug 2022 10:54:31 +0200 Subject: [PATCH] added some ideas to what is could/should be --- README.md | 6 ++++++ config.json | 5 ++++- go-sh-manymanuals.go | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 847c233..ea8a06b 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,11 @@ manuals and datasheets for everything in [Varia](https://varia.zone). ## Road Map, Get it going, Change while we learn 1. Make it able to search multiple directories filled with pdfs 2. Make it able to up/download pdfs + - I made a config where you can set a share and downloads folder much like p2p sharing programs. + - go-sh-manymanuals could be both a client and server program at the same time. + - you can download off big servers. + - you can download off each other locally. + - it should keep track of what you already have, because doubles are the big pain in PDF's/filesharing in general + - maybe in the future, entire folders can be synced between you and current connected server. 3. Make it able to index those pdfs into the search. 4. Improve the layout. diff --git a/config.json b/config.json index ecd2d05..19e31a6 100644 --- a/config.json +++ b/config.json @@ -1 +1,4 @@ -{"ManualDir": "datasheets" } +{ + "ShareManualDir": "datasheets", + "DownloadManualDir": "newmanuals" +} diff --git a/go-sh-manymanuals.go b/go-sh-manymanuals.go index 5c97768..8d345a2 100644 --- a/go-sh-manymanuals.go +++ b/go-sh-manymanuals.go @@ -36,7 +36,7 @@ type model struct { } func initialModel() model { - folder := viper.Get("ManualDir").(string) + folder := viper.Get("ShareManualDir").(string) manuals, err := gatherManuals(folder) if err != nil { @@ -104,7 +104,7 @@ func (m model) View() string { } ui += "\nPress q to quit.\n" - + ui += "\nPress forward or backward to navigate in and out of directories.\n" return ui }