Code Monkey home page Code Monkey logo

fastfind's People

Contributors

danielgek avatar samuthekid avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ackvf

fastfind's Issues

feature: navigate within highlights

It would be nice to be able to navigate between highlighted words.

  • If I have several different highlights and I deselected the highlights, the navigation should go between all
    image
  • If I selected some highlight with mouse, then the navigation should be limited only to matches
    image

For this to work, a deselection should perhaps be implemented as the latest added highlight remains selected until I select or add something else.

I suggest a change to the shortcuts as well
F

  • When text is selected - adds that selection to highlights
  • When Highlight is selected - navigates to next matching highlight
  • When nothing is selected - navigates to next (any) highlight (this one is tricky, how to decide which is next?)

Shift+F

  • When Highlight is selected - navigates to previous matching highlight
  • When nothing is selected - navigates to previous (any) highlight

D

  • When Highlight is selected - removes that highlight
  • When nothing is selected - removes all highlights

To prevent accidental removal of all highlights, it can be modified to Shift+D

So how to decide which is next?
The starting point for "Next" lookup should be the last selected text that was added to highlights.
If that's off the screen, the "Next" should be from the start of current viewport or below. (I already hate enough how the native Ctrl+F jumps at the top of the page, when I just want to search something where I am currently looking.) The user can always return back by Shift+F if that wasn't what they were expecting. If a highlight was deselected, the position of last word should still be known, so the lookup can follow same rules.

Suddenly Ctrl/Alt+F is interpreted as F by this extension

Perhaps after the latest update from 8.10.19, I cannot use CtrlF to bring up chrome's search popup or AltF for Menu. When I disable this extension, the shortcuts start working.

In order to bring the popup up, I have to first press Alt to focus Chrome's Menu Bar.

/Edit after few observations
Pressing CtrlF or AltF behaves exactly as if I only pressed F:

  • If I have a text selected, pressing them instead activates this extension's search.
  • If I have some selections highlighted, it instead removes latest selection.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.