-
Notifications
You must be signed in to change notification settings - Fork 174
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
VimFx Jump list – like ''
but more than one step, and in both directions
#814
Comments
Please let me know the reason for closing this issue so quick. |
You didn't give a detailed use case example. You didn't even say what you want/need. Saying "do Vim jump list but for a web browser" is not helpful. |
Thank you. I'll try to explain my request in detail. SummaryMake Ctrl-O navigate back to last browsing location, in the current tab or other tabs. And make Ctrl-I navigate back to previous browsing location (the previous location is available only after we had used Ctrl-O). Usage ExampleWhile reading a very long website, I see some new terms that they say "will be Really wish Why current features is not enough:
P/s: Forgive my broken English. I really love VimFx. This addon only is enough for me to not switching to Chrome. If I know JavaScript better, instead of an issue, I would make a Pull Request. Perhaps today is a bad day for you. Or you have tired to looking into bad formatting/explaining issue. Anyway, I wish you and VimFx the bests. :) |
Thanks for your detailed response! The hardest thing about new features is always understanding who they should work, and what the user actually needs.
Don't worry, your English is really good!
Just in case you don't know, there is a similar add-on for Chrome called Vimium (which VimFx is heavily inspired by).
Well,
Let's define a "browsing location". Is that the same thing that sets the This is an idea I have: We'll have a list like this:
Going back means moving When adding a new But what happens to the list when you click a link? This is a question I stumbled upon: Is it really necessary to have a global jump list (across tabs, but perhaps one per window), rather than one per tab? Because one per tab is much easier to understand, but perhaps I'm missing a use case. |
I tried a few vim motions addon on both Chrome and Firefox. Chrome doesn't allow addon run on some website (for example: Chrome Web Store,
Indeed a good point. I prefer to have one list per window, as it's too easy to move around without set a mark to back. The hardest case is when user change the tab content (by open link in current tab or close it). For that case, I propose to clear remove the locations that associated with the changed/closed tab. User shouldn't be surprised if they cannot navigate back to somewhere in a non-existed tab. They should keep their tabs open manually.
Basically, anything that change the display of Firefox should also save an browsing location before moving on. So, following actions should add new item to the list:
I'm not sure what sets the
Totally agree with you. Just one minor fix is that new Location should be |
Could you give a nice example like in your second comment where jumping between tabs is used? |
Ok. I've tried. But mose of the use cases could be cover by a combination of |
Ok, I see how a jump list could be useful. |
''
but more than one step, and in both directions
Here's an idea I have. I don't know if it is a good one yet.
Possibly:
So, the idea is to add more special marks (in addition to However, what if you want |
I see that you don't want VimFx affect Firefox default shortcuts. I propose to use |
What do you think about the proposed marks, then? Such as |
For For |
I was thinking that you could press
Makes sense. |
One more thing.
|
I'm not suggesting that Regarding going back from internal links: I don't think that'll be possible with the jump list. Couldn't you use |
Nice catch. I forget that thing. |
To anyone reading this: If |
Hi, I see a very interesting discussion is going on. Allow me to contribute some thoughts,
For me, remembering the last query searched is enough. Any other case arising from searching multiple queries and jumping can be handled by the jump list, the
I'd say keep it, going with the vim philosophy. The
I'd definitely be interested in such a feature. Maybe, make it accessible just through the config file. But the ability to override (if desired), the What I would like to add, if possible is a way to visualize the marks, like something the vim |
Since we're discussing the jump list, here we go... If As for the jump list UI... I don't think it's very feasible. Ideally, something like the |
True,
This. Is there any reason why we should have
Oh well, if it's too much work for a little feature, we can take it up later. For now, I'd be interested in implementing the jumplist feature first. |
They should yes, otherwise we'd just use |
@lolilolicon I copy this from Vim manual.
In VimFx, we don't have |
Sounds perfect. On Sun, Oct 2, 2016, 10:33 AM Le Tien Tai notifications@github.com wrote:
Arindam Banerjee |
Note that VimFx is not trying to copy Vim. We’re trying to make useful and simple features inspired by whatever we come across.
The rule in VimFx is that features are not added until the requester gives detailed use case examples and helps with designing (as in describing how it should work and/or look like) the new feature. Feel free to open a new issue about this, but my gut feeling is that this won’t happen (just like @lolilolicon was hinting at).
That’s a bug. Your expectations are correct.
That’s a misunderstanding. They’re supposed to concern the same jumps as the
Since nobody seems to have followed the link in one of my previous comments, I’ll just copy-paste the documentation here :) “One mark is special: Here is the current plan:
This seems like a simple solution, and seems to do what is requested here. Thoughts? |
So applied to VimFx, the ones that make sense are
This is overlapping with |
@lydell Let me quote myself here,
Can we have this? Seems like a useful feature and the one @letientai299 initially requested. @lydell just so you know, I did read your link; what I meant was we seemed to be contemplating something more than those registerd by the |
@lydell This sounds really good for now. |
@SageEx yes they can be useful, I agree, but considering there's no support for a jump list UI or such, but only a simple step-wise back-and-forth, it's unlikely anyone will do "long jumps". We should probably just use a new tab... |
This is not the same as There are sites where we have a reference and a editor to try things out (Hackerrank comes to mind). Having the ability to jump quickly to reference the question details and jump back, with a single key - that sound's great. |
That’s a cool idea. It might be doable.
I don’t understand this. Are you dissatisfied with the current jumps? What are you trying to suggest here? :)
Well, that would solve the first use case example that @letientai299 posted, but @letientai299 have not been very interested in such a feature in this thread. But perhaps it should be added, yes.
As mentioned earlier in this issue, I don’t think that’s possible. The current plan is to reset the jump list when you click a link in a tab (just like the marks are).
Why is that not quick, what purpose does what defeat and why? :) Also, is this a common thing people would want, or do you think we’d be fine with a custom command? I see two paths forward now:
|
@lydell The second plan seems to satisfy all the use cases. |
@lydell It's not quick because it's slower than pressing I'd say the second plan seems is best. |
Nah, I was thinking for all the jumps supported by VIM there's only a few that currently make sense in VimFx, but web pages are actually semantically richer in some way (and a lot messier), so possibly VimFx can add a jump motion of "next section" or "next div" or "next comment" and such. In a way |
@lolilolicon Ah, you’re looking for some kind of screen reader-like navigation functionality. That doesn’t belong in this issue, though. To summarize, here’s the plan:
|
The `'` mark is supposed to point to the location before the last "jump." One such jump is using the `'` mark itself (by pressing `''`). This means that running `''` several times in a row will flip back and forth between two locations. However, that was previously broken. `''` took you back to the last location, but then you got stuck there. This commit fixes that bug. Refs. #814.
Thanks a lot for the quick update 😃 |
Edit by @lydell:
Store all locations that are saved in the
'
mark as a list, and provide one command for going backwards in that list, and one for going forward. (The list is per tab.)Original description:
Please consider adding jump list to VimFx.
I find myself rarely use Ctrl-O (open file) and Ctrl-I (Show Page Info) on Firefox. So, I won't be sad if the 2 shortcuts can be used to make Firefox be more like Vim. Perhaps other people find this feature useful too.
The text was updated successfully, but these errors were encountered: