Coder Social home page Coder Social logo

Comments (10)

raucao avatar raucao commented on May 18, 2024 1

I'll check it out.

from webmarks.

raucao avatar raucao commented on May 18, 2024

Thanks for your request, Ben! Are you talking about mobile or desktop usage? I'm not a fan of JavaScript getting in the way of standard UI behavior, so on desktop I'd prefer to have the user select the text themselves in case they want to replace it.

However, on mobile it's not so easy to select text, so the usual way to ease clearing of search fields is a delete (x) button on the right hand side. I think this could be useful for sure.

from webmarks.

benrubson avatar benrubson commented on May 18, 2024

Thank you for your answer Sebastian !
I'm talking about desktop usage :)
This request follows #46 where search field is now re-focused after something has been clicked.
This of course improves user experience, speeds up Webmarks usage.

I then think it could even be better if, when there is some text inside the search field, in addition for the field to be focused, the text could also be selected.
So that the user can type something new without having to first clear the field.

Of course I think this requires some JS (select() function I think).

from webmarks.

benrubson avatar benrubson commented on May 18, 2024

Some news regarding this ? :)
Many thanks !

from webmarks.

raucao avatar raucao commented on May 18, 2024

No news. Last thing I did was updating the underlying framework and all code. I'll have a go at this one next.

from webmarks.

benrubson avatar benrubson commented on May 18, 2024

OK, thank you Sebastian 👍

from webmarks.

raucao avatar raucao commented on May 18, 2024

I just deployed a new version, which shows a button for clearing the search field when it contains text. This should solve it nicely on both mobile and desktop. (It will also keep/re-set the focus on the field when clicking it.)

I also improved the layout of the search field a little bit.

from webmarks.

benrubson avatar benrubson commented on May 18, 2024

Thank you Sebastian 👍

Use case was also the following : you search for a bookmark, click on it, read this new opened page.
You come back to Webmarks and want to search for another bookmark.
It would then be nice for the previous searched text to be selected, so that you can enter new text directly without having to click / select or whatever.
Do you then see why I would have liked the text to be selected ?

from webmarks.

raucao avatar raucao commented on May 18, 2024

I understand the use case, but I don't think selecting text is the best way to go here in regards to balancing various different use cases. The field already has focus, so in order to select the text before typing more, you could just press CTRL+A for example. But you could also decide to add more text to the search phrase.

I'm open to check out any pull requests changing this behavior, but I'll leave it like this for now. It's very similar to almost every search field on the Web, but with the added auto-focus when coming back.

from webmarks.

benrubson avatar benrubson commented on May 18, 2024

Understood, thank you for your feedback Sebastian 👍

from webmarks.

Related Issues (20)

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.