mirror of
https://github.com/makew0rld/amfora.git
synced 2024-12-04 14:46:29 -05: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
|
- Reset bottom bar on error / invalid URL
|
||||||
- Side scrolling doesn't cut off text on the left side (#1)
|
- 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
|
## [1.0.0] - 2020-06-18
|
||||||
Initial release.
|
Initial release.
|
||||||
|
@ -33,7 +33,7 @@ update-desktop-database ~/.local/share/applications
|
|||||||
|
|
||||||
## Usage
|
## 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.
|
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
|
Keywords=gemini
|
||||||
Terminal=true
|
Terminal=true
|
||||||
TryExec=amfora
|
TryExec=amfora
|
||||||
Exec=amfora %U
|
Exec=amfora %u
|
||||||
MimeType=x-scheme-handler/gemini;
|
MimeType=x-scheme-handler/gemini;
|
||||||
|
@ -19,14 +19,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
display.Init()
|
display.Init()
|
||||||
|
|
||||||
for _, url := range os.Args[1:] {
|
|
||||||
display.NewTab()
|
|
||||||
display.URL(url)
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(os.Args[1:]) == 0 {
|
if len(os.Args[1:]) == 0 {
|
||||||
// There should always be a tab
|
// There should always be a tab
|
||||||
display.NewTab()
|
display.NewTab()
|
||||||
|
} else {
|
||||||
|
display.NewTab()
|
||||||
|
display.URL(os.Args[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = display.App.Run(); err != nil {
|
if err = display.App.Run(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user