Git Product home page Git Product logo

Comments (8)

pigmonkey avatar pigmonkey commented on July 27, 2024

Possibly related: when I use alt+2 to type the username, it actually prepends a single space to the username.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

As for your 2nd comment: rofi-pass mimics yaml which only allows a single space after the colon. I merged a patch in the past that allowed for use of tabs, which had the side effect of allowing more than one space too.

That said I now ignore leading whitespaces from field values. This possibly even works with a tab delimiter, but it's definately not recommended.
You might want to consider to fix your password files, since this is not specs-compilant. I try to remain yaml compilant, since this makes rofi-pass compatible with autopass

Thanks for reporting btw, I indeed forgot to define USERFIELD_name in 2 places

from rofi-pass.

pigmonkey avatar pigmonkey commented on July 27, 2024

Autotype is working with my username field now.

I'm still getting the prefixed whitespace with my username. I agree that tabs are not YAML separators, but reading the spec I don't see where they specify that only a single space is allowed as a separation character. They do say that leading white space should be discarded.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

can you try latest commit?

I also have a strange issue, which doesnt affect day to day work, but its still odd.
When hitting Enter on an entry and default_do is "autopass" I get an error on terminal about some of the fieldnames not being a valid command. if i use Alt+t and hit autotype there, I don't get that error. Both ways call exactly the same command...

from rofi-pass.

pigmonkey avatar pigmonkey commented on July 27, 2024

The latest commit works great! No more leading whitespace in my username.

With default_do set to autopass, if I run the latest rofi-pass from the terminal and select an entry, it outputs:

autopass
usertab<tab>password

On line 330 you're echoing default_do, which causes the first line of output. I'm not sure if there is a reason for that (maybe just a debug echo?), but that could be the cause of your issue. Your terminal is saying that autopass is not a valid command.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

so you are not getting what i am getting, how bizarre...

autopass
UserblaPassword./rofi-pass: line 350: user: command not found

It works fine though, but that error irritates me, If i do Alt+t and select autotype from there it does not happen

from rofi-pass.

pigmonkey avatar pigmonkey commented on July 27, 2024

Nope, I don't get that. I use ZSH, if it matters.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

Ok, it strangely works when using "autotype" as default_do. Using "autopass" it gives the above error. I am lost here :)

from rofi-pass.

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.