-
Notifications
You must be signed in to change notification settings - Fork 99
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
Allowing to activate a link directly when it gets a search hit #131
Comments
I don't know this feature.
|
On 23/10, Daniel Carl wrote:
Lingnan Dai |
Ok, I know what you mean. I think this works because vimperator focus the searched element/text. Firefox and webkit do not focus the searches elements, so the |
I looked over the pentadactyl sources. Pentadactyl implements the search completely in JavaScript and can therefore focus the current found item. Vimb uses the built in webkit search and highlighting mechanism that provides no API to focus the found item. Your suggestion to search by webkit and to set the focus via JavaScript does not work. We get no information where in the page the current found item is located, neighter from c code nor by a changed property in the DOM. At the time the only way to get this working is to implement searching via JavaScript. I don't think that we can built this into vimb. But as a workaround, you can enable Caret-Browsing via |
We can have this feature with the following mapping:
|
@antoyo Thank you for this hint. I'll try to implement this in vimb so that the |
Cool. |
When a search is performed and the current highlighted result is part of a link, a click event is triggered on the link to open it. Currently the click() is done by JavaScript on the element so that we can't control if the target open in current window or in a new one.
I've pushed a first attempt to get this working. But vimb does not have control about the link target. tat means if the link or otherwise JavaScript crafted element want to open into new window a new window will be opened. I assume we have to reuse some of the hinting JavaScript to let vimb control where to open the element. |
This is already implemented. |
Back in the day of vimperator there was one feature I used from day to day. I will search for some string on the page, hit
n
orN
to get reach the link I want, and hit<Enter>
to activate it directly. With vimb I have to hitf
and type the number for the link. It's no big deal but it would be nice if we can add this feature.The text was updated successfully, but these errors were encountered: