🔥 Remove opening multiple URLs on the command line

This commit is contained in:
makeworld 2020-06-21 19:48:58 -04:00
parent 92bb47aa20
commit ed778bfc83
4 changed files with 7 additions and 7 deletions

View File

@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Reset bottom bar on error / invalid URL
- Side scrolling doesn't cut off text on the left side (#1)
## Removed
- Opening multiple URLs from the command line (threading issues)
## [1.0.0] - 2020-06-18
Initial release.

View File

@ -33,7 +33,7 @@ update-desktop-database ~/.local/share/applications
## Usage
Just call `amfora` or `amfora <url> <other-url>` on the terminal. On Windows it might be `amfora.exe` instead.
Just call `amfora` or `amfora <url>` on the terminal. On Windows it might be `amfora.exe` instead.
The project keeps many standard terminal keybindings and is intuitive. Press <kbd>?</kbd> inside the application to pull up the help menu with a list of all the keybindings, and <kbd>Esc</kbd> to leave it. If you have used Bombadillo you will find it similar.

View File

@ -7,5 +7,5 @@ Categories=Network;WebBrowser;ConsoleOnly;
Keywords=gemini
Terminal=true
TryExec=amfora
Exec=amfora %U
Exec=amfora %u
MimeType=x-scheme-handler/gemini;

View File

@ -19,14 +19,12 @@ func main() {
}
display.Init()
for _, url := range os.Args[1:] {
display.NewTab()
display.URL(url)
}
if len(os.Args[1:]) == 0 {
// There should always be a tab
display.NewTab()
} else {
display.NewTab()
display.URL(os.Args[1])
}
if err = display.App.Run(); err != nil {