Git Product home page Git Product logo

Comments (4)

mattydebie avatar mattydebie commented on June 19, 2024 2

Maybe the most generic way to handle this is to indeed use a second rofi to finetune the selection.
When you use bwmenu for searching folders this actually already happens. This could be really easy to add imo.

from bitwarden-rofi.

Mange avatar Mange commented on June 19, 2024

Problem is I'm not sure rofi can hide part of the input it's been given...

It can not. I've tried this before.

fzf can do it --nth and --with-nth options:

    -n, --nth=N[,..]      Comma-separated list of field index expressions
                          for limiting search scope. Each can be a non-zero
                          integer or a range expression ([BEGIN]..[END]).
    --with-nth=N[,..]     Transform the presentation of each line using
                          field index expressions

I wish rofi had something similar to this. :(

from bitwarden-rofi.

remyrd avatar remyrd commented on June 19, 2024

Just a thought, I believe there are other ways out of this...

  • I commented on another issue #12 (comment) and well, assuming the user can "visually" deduplicate the entries since there is more metadata on each item and some templating maps the format to the fields in ITEMS, one could use additional select() statements (functions?) in jq to return the one good entry. Still, the user can't expect to get a different entry when selecting the second identical option
  • Deduplication could be offloaded to another rofi instance, offering initially a list of entries uniquely identified by whatever string the user configures.

from bitwarden-rofi.

Mange avatar Mange commented on June 19, 2024

When I did Mange/rofi-lpass (LastPass in Rofi) I added the ID to each entry like this:

Some Site [<ID>]

Copy password [<ID>]
Copy username [<ID>]

Then I could extract the ID on each line.

We could also use the built-in support for Pango markup (with the -markup-rows option to Rofi) to make the ID markers really small so it doesn't stick out as much.

from bitwarden-rofi.

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.