Git Product home page Git Product logo

Comments (23)

carnager avatar carnager commented on July 27, 2024

Sounds to me like you have -auto-select in your rofi settings (~/.Xresources or ~/.config/rofi/config) and only have one password entry.

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

No, I don't have this option and I have more than one password entry.
I tried adding the option rofi.auto-select: false, but I still get this issue.
Is there any debug mode for rofi/rofi-pass so that I can see what happen?

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

bash -x /path/to/rofi-pass

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

I attached the logs to this post.

I don't know why I get:

+ selected_password=path/to/password

since I did not select a password (it is automatically selected).
Could it be caused by the -select '' option?
Do you see something suspicious in this log?
Thanks for your help.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

run this: echo -e "1\n2\n" | rofi -dmenu -select '' -kb-accept-entry '!Return'

If this has your behaviour try the same thing without the -kb-accept-entry option and see if it helps.
If this fixes it, you need to update your rofi.

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

I tested with your command and it does not seem to be caused by -select ''.
Do you have any idea by looking at the logs file?
Thanks for your help.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

that log seems perfectly fine. and in fact your log claims a return code of "0", which in theory can only be caused by hitting Enter

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

which rofi version?

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024
~ rofi -v
Version: 1.2.0

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

how exactly are you starting rofi-pass?

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

With rofi, but the same issue arise when I start it from the terminal.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

well i am clueless. there is no way rofi-pass can trigger this and your rofi options themselves dont trigger it either.

from rofi-pass.

roomcays avatar roomcays commented on July 27, 2024

Well, I must report, that I have just faced this issue too. My instance of rofi-pass behaves exactly like @antoyo described.
At the same time rofi by itself does not bother whether mouse cursor is above it's window or not...

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

To the original poster:

echo -e "1\n2\n3" | rofi -i -width 700 -no-levenshtein-sort -mesg 'Welcome to rofi-pass. Use <span color='\''#ffffff'\''>Alt+n</span> to create a new pass entry.
Run menu with <span color='\''#ffffff'\''>Enter</span>. For more help hit <span color='\''#ffffff'\''>Alt+h</span>.' -dmenu -kb-accept-entry '!Return' -kb-custom-1 Alt+1 -kb-custom-2 Alt+2 -kb-custom-3 Alt+3 -kb-custom-4 Alt+4 -kb-custom-5 Alt+u -kb-custom-6 Alt+p -kb-custom-7 Alt+o -kb-custom-8 Alt+l -kb-custom-9 Alt+t -kb-custom-14 Alt+a -kb-custom-15 Alt+c -kb-custom-16 Alt+h -kb-custom-17 Alt+x -kb-custom-18 Alt+n -dmenu -select '' -p 'rofi-pass > '

This is the exact command being run. Run it manually. Same thing happening?

from rofi-pass.

pigmonkey avatar pigmonkey commented on July 27, 2024

I've occasionally experienced this as well. My cursor is rarely ever in the middle of the screen, so it happens infrequently.

Here is a screencast (taken with teiler!) of the behaviour: http://files.pig-monkey.com/rofibug.mp4

You can see my cursor is in the middle of the screen. I paste the command above and hit enter. Because my cursor is immediately above the 1 entry, it is automatically selected.

Then I move my cursor to the upper left, paste the command, and hit enter. As expected, nothing happens until I manually hit 3<enter>.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

I wonder what triggers this. can you try to ommit -kb-accept-entry '!Return' argument from the command?
but anyway. Your screencast proves it's not a rofi-pass issue, but a rofi one.

Would be nice if you can come up with the most minimal command to trigger this behavior. Then we can report it upstream.

from rofi-pass.

pigmonkey avatar pigmonkey commented on July 27, 2024

I cannot get it to trip when I remove that. If I keep my cursor in the same spot and put -kb-accept-entry '!Return' back in, it autoselects like in the screencast. So, yeah, seems to be that.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

pffft. I explicitly asked for the result of the command without -kb-accept-entry in my 3rd post on oct. 19th. It was ignored. Anyway, I will remove this part, but it will break compatibility some older rofi versions (and hopefully has no side effects)

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

Could you please release a new version with this fix so that we can update the package in distribution repositories?
Thanks a lot.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

Was waiting for comfirmation that this fixes things. Anyway, done.

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

I cannot reproduce the issue with this fix.
Thanks.

from rofi-pass.

antoyo avatar antoyo commented on July 27, 2024

This issue happens with the new release of 2 days ago.

from rofi-pass.

carnager avatar carnager commented on July 27, 2024

Make sure you have the above mentiond rofi option in your _rofi function of rofi-pass config file (or not, depending on what works for you :))

This is how it looks in my ~/.config/rofi-pass/config:

_rofi () {
    rofi -width 1000 -i -no-auto-select -no-levenshtein-sort "$@"
}

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.