Giter Club home page Giter Club logo

deeplinks's People

Contributors

wesleyac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deeplinks's Issues

Feature suggestion: debounce url updating

I'm a serial highlighter when reading text on the internet. I like to use the mouse and click/drag things as I go, and deeplinks.js as-is can slow down that interactive reading experience a little bit. Around a year ago, I forked linktext.js and added a delay to setting the url, removing the lag feeling when highlighting text on the site (you can see in action here). Making the issue so it can be considered over here as well.

Any way to have a deeplink work from the page it links to?

My use case is to provide links to an update on a ticket. For example:

https://rouilj.dynamic-dns.net/demo/issue439#29VHfN7-JF:5H:8Z

links to text inside a message on a ticket. This works fine when the link is not
located on the page https://rouilj.dynamic-dns.net/demo/issue439 itself.
If you click on the link (see https://rouilj.dynamic-dns.net/demo/issue439#msg36017)
many times it does nothing.

I think the browser sees that the links is to the same page. As a result it doesn't reload the page. It looks for
an element with a matching id. Since that id doesn't exist on the page it fails.

Any idea on how to fix this? Maybe add a document listener for click. If the listener detects one of deeplink's
links it jumps down the page and selects the text.

Alternatively is there a function I can call to trigger deeplink if I pass it a fragment/url?

How to provide a way for the user to easily copy the deeplink url.

When highlighting text, it changes the fragment of the url.

Is there a way I can tell that the url has been changed so I can e.g. insert a button
before/after the highlighted text. When the user clicks on the button, the url is copied
to the clipboard.

Thoughts?

What is the purpose of e-d610c008.js and 1-6ee99c94.js in the distribution?

The subject says it all. Having only one file to install would make this easier.

Although 1-6ee99c94.js is 2/3 the size of deeplinks so if it's not usually needed maybe it's
better that they are split.

At the very least it would be nice to have them named deeplink-error.js deeplink-utils.js or
something so they can be identified when put into a shared javascript directory.

Thanks.

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.