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

Re-execute the previous query #73

Closed
Ben-Zvi opened this issue Apr 6, 2018 · 7 comments
Closed

Re-execute the previous query #73

Ben-Zvi opened this issue Apr 6, 2018 · 7 comments

Comments

@Ben-Zvi
Copy link

Ben-Zvi commented Apr 6, 2018

Wish there was a way to re-run the previous query. Can be helpful with multi-line queries that cannot easily be cut-n-paste.
Even better - specify an offset, like running the query before the last, or before that, like:
!rerun (same as !rerun-1)
!rerun-2
!rerun-3

@julianhyde
Copy link
Owner

Have you tried up-arrow?

@marcprux
Copy link
Contributor

marcprux commented Apr 6, 2018 via email

@Ben-Zvi
Copy link
Author

Ben-Zvi commented Aug 14, 2018

Need to upgrade to a newer JLine (see jline/jline3#36 )

@vdiravka
Copy link

Looks like update of SQLine JLine 2.14.4 to 3.9.0 version is not trivial task and requires a good knowledge of SQLine and JLine.

@snuyanzin
Copy link
Collaborator

snuyanzin commented Aug 20, 2018

Currently from time to time I'm doing some activity on moving to use to jline3 and this and some other features seems to be working there [1]. However there are still several issues like support jline2 history files, non-working jline's less on Windows and etc. Also it requires moving to jdk 1.8.
Any help is appreciated.
I do not think it will be ready for 1.5.0 but as soon as the main issues will be resolved I will make a PR
[1] https://github.com/snuyanzin/sqlline/tree/JLINE3

@snuyanzin
Copy link
Collaborator

snuyanzin commented Sep 12, 2018

Added implementation of !rerun (also !/ is possible by analogy with Oracle sqlplus) in #115
Please have a look and review

@julianhyde
Copy link
Owner

Fixed in bf495f9, PR #155. Thanks @snuyanzin!

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

5 participants