Skip to content

Conversation

@Freed-Wu
Copy link
Contributor

@Freed-Wu Freed-Wu commented Sep 20, 2022

Fix #177

#181 is too large because it contains too many commits which have different
functions, so I think if it is split to many PRs, you can review it more
easily. This PR cherry-picks the commits only related to readline and squash them
to one commit. Thanks.

@Freed-Wu
Copy link
Contributor Author

I believe this PR can work even if on windows.

And prompt-toolkit or pyreadline3 should be another unrelated PR.

@lukas-blecher
Copy link
Owner

Awesome!
Tested it on my windows machine, works fine.

@lukas-blecher lukas-blecher merged commit ba77624 into lukas-blecher:main Sep 20, 2022
@Freed-Wu Freed-Wu deleted the only-readline branch September 20, 2022 10:41
@Freed-Wu
Copy link
Contributor Author

How about providing a command opiton --history to point the readline history? Just like --config.

@lukas-blecher
Copy link
Owner

Why would you want to change the history file?

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Sep 20, 2022

Maybe someone wants to pix2tex --history=/dev/null (for linux) or pix2tex --history=nul (for windows) to make sure all history will not be recorded?

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

Successfully merging this pull request may close these issues.

[feature] Support readline hotkey?

2 participants