added some ideas to what is could/should be

This commit is contained in:
crunk 2022-08-14 10:54:31 +02:00
parent 6c37ddb1fd
commit 8aac2b389e
3 changed files with 12 additions and 3 deletions

View File

@ -22,5 +22,11 @@ manuals and datasheets for everything in [Varia](https://varia.zone).
## Road Map, Get it going, Change while we learn ## Road Map, Get it going, Change while we learn
1. Make it able to search multiple directories filled with pdfs 1. Make it able to search multiple directories filled with pdfs
2. Make it able to up/download 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. 3. Make it able to index those pdfs into the search.
4. Improve the layout. 4. Improve the layout.

View File

@ -1 +1,4 @@
{"ManualDir": "datasheets" } {
"ShareManualDir": "datasheets",
"DownloadManualDir": "newmanuals"
}

View File

@ -36,7 +36,7 @@ type model struct {
} }
func initialModel() model { func initialModel() model {
folder := viper.Get("ManualDir").(string) folder := viper.Get("ShareManualDir").(string)
manuals, err := gatherManuals(folder) manuals, err := gatherManuals(folder)
if err != nil { if err != nil {
@ -104,7 +104,7 @@ func (m model) View() string {
} }
ui += "\nPress q to quit.\n" ui += "\nPress q to quit.\n"
ui += "\nPress forward or backward to navigate in and out of directories.\n"
return ui return ui
} }