Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearing input after adding to history #114

Open
slashinfty opened this issue Dec 20, 2023 · 3 comments
Open

Clearing input after adding to history #114

slashinfty opened this issue Dec 20, 2023 · 3 comments

Comments

@slashinfty
Copy link

Hey, thanks for the add-on to Rofi.

Is it possible to clear the input bar after pressing Return and having the result added to history? Could -calc-command be used for this?

Thanks in advance!

@svenstaro
Copy link
Owner

I don't think this currently possible. I'd accept a contribution for this. Should be easy enough. Maybe use one of these custom input modes? We already use kb-accept-custom so perhaps you could use kb-accept-alt? Should be pretty easy to add to calc_mode_result() if you wanna take a stab at this.

I'd also accept a contribution for adding a flag that always has this behavior on normal Return. What do you think?

@slashinfty
Copy link
Author

I think a flag would be my preferred choice. I agree that I do not think it's possible at the moment. I am unfamiliar with rofi development (or C for that matter), but I could theoretically explore it myself. Might still be better for someone else with experience to tackle it, though.

@svenstaro
Copy link
Owner

I don't like C either. If you wanna tackle it, I'm very much up for a rewrite of rofi-calc to Rust. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants