forked from varia/go-sh-manymanuals
added some ideas to what is could/should be
This commit is contained in:
parent
6c37ddb1fd
commit
8aac2b389e
@ -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.
|
||||
|
@ -1 +1,4 @@
|
||||
{"ManualDir": "datasheets" }
|
||||
{
|
||||
"ShareManualDir": "datasheets",
|
||||
"DownloadManualDir": "newmanuals"
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user