Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: add confirmation promps when visiting non-gemini URLs #301

Closed
emily-is-my-username opened this issue Mar 26, 2022 · 3 comments
Labels
enhancement New feature or request question Further information is requested UI Deals with the visual user interface

Comments

@emily-is-my-username
Copy link
Contributor

emily-is-my-username commented Mar 26, 2022

Hi!
When using amfora, I keep accidentally opening browser windows by selecting http(s) urls that are not clearly marked as such.
I looked for a ways to verify non-gemini URLs before visiting them, but none of the options I found were really convenient for me:

  • enable show_link (I don't like the visual clutter)
  • use tab to select the links and verify them in the URL bar (slow compared to using link numbers)
  • disabling the URLs scheme entirely (even slower because then I have to copy-paste to other applications)
  • using an external handler to show the prompt (complicated to set up)

IMO, a (y/n) confirmation prompt (similar to redirects) on visiting URLs with a configurable set of schemes would be a good tradeoff between visual clutter, control and convenience.

EDIT:
Sorry, I just noticed that the underline option exists to mark non-gemini-URLs.
I will still leave this open in case it is wanted. I personally like being able to quickly review the URL before opening it.

@makew0rld makew0rld added enhancement New feature or request question Further information is requested UI Deals with the visual user interface labels Mar 27, 2022
@makew0rld
Copy link
Owner

Hi, thanks for your interest in Amfora.

Personally I differentiate between HTTP and Gemini URLs using themeing. Here's an example just on the new tab page of my Amfora setup:

image

This theme used to be the Amfora default before v1.9.0. Copied from the release notes:

The default theme of Amfora was changed, now the user's default terminal colors are used. See #181 for details. If you want the original Amfora theme back, copy this file into your config, replacing the [theme] section.

Using different colours is very clear to me and does the job. Thanks for adding a PR, and I think the idea of scheme-based prompts is not bad. But if your issue is "accidentally opening browser windows by selecting http(s) urls", maybe it's unnecessary and themeing is a good enough fix? Let me know what you think.

@emily-is-my-username
Copy link
Contributor Author

Personally I differentiate between HTTP and Gemini URLs using themeing.

Thank you for the reminder. That was another oversight on my part, I guess I subconsciously assumed those were already-visited URLs (even though I know amfora does not track those) without thinking twice about it.

Thanks for adding a PR, and I think the idea of scheme-based prompts is not bad. But if your issue is "accidentally opening browser windows by selecting http(s) urls", maybe it's unnecessary and themeing is a good enough fix? Let me know what you think.

Themeing is a good enough fix for my initial issue. That being said, I still find the prompts useful to inspect external urls and as a safeguard when mistyping link numbers. They will stay in my own build, but I can't judge know how high the demand for them really is.

@makew0rld
Copy link
Owner

Good to hear themeing works for you. I'll revisit your PR before the next release if not earlier and decide whether to merge it in or not. Thanks for working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested UI Deals with the visual user interface
Projects
None yet
Development

No branches or pull requests

2 participants