televator-apps / vimari

Safari port of vimium
https://televator.net/vimari
MIT License
2.56k stars 232 forks source link

question: press F once and open multiple URLs from there #209

Open ssh352 opened 4 years ago

ssh352 commented 4 years ago

is it possible?

nbelzer commented 3 years ago

It likely is, however you would run into the issue of determining when to stay in "F" mode and when to leave it. Could you perhaps elaborate on a use case that would require this.

ssh352 commented 3 years ago

@nbelzer For example: I'd like to open two links in the background

current sequence: 1enter shift-F 2 link hint characters show up 3enter the characters for a link 4It opens the URL in the background 5the link hint characters disappear 6enter shift-F again 7enter the characters for the second link 8it opens the second URL in the background

desired sequence: 1enter shift-F 2 link hint characters show up 3enter the characters for a link 4It opens the URL in the background 7enter the characters for the second link 8it opens the second URL in the background

nbelzer commented 3 years ago

Alright that makes sense to me, however I think you miss a step 9 in your desired sequence to cancel the link hints that are still on display, using something like esc. Given my personal usage of Vimari (many times opening single urls compared to very few times wanting to open multiple urls) I think this extra step becomes cumbersome and would thus not be worth the extra keystroke.

Unless there is another option to do this cleverly there is going to be a cost (a keystroke) associated for opening multiple tabs, either you pay for it when you want to open multiple tabs (by pressing S-f again) or you pay for it every time you open up a single tab (by pressing esc). What are your thoughts on this?

ssh352 commented 3 years ago

I see your point. My desired sequence of opening multiple links in the background came from using Vimperator with Firefox. Some people may find pressing esc cumbersome while other users need to open multiple links quickly in the background. So about making the behavior configurable with a default?

I guess most Vimari users are also vim users like myself so o pressing esc or ctrl-[ feels very natural.

A typical user case for the need to open multiple links quickly is when you browser forums and you want to open multiple posts at once in new tabs.