mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-09-11 14:55:51 +03:00
🔥 Remove opening multiple URLs on the command line
This commit is contained in:
parent
92bb47aa20
commit
ed778bfc83
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user