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

REPL: jump to first/last history entries #22829

Merged
merged 4 commits into from
Jul 27, 2017
Merged

REPL: jump to first/last history entries #22829

merged 4 commits into from
Jul 27, 2017

Conversation

rfourquet
Copy link
Member

Fixes bullet 3 of #8447.
In particular after prefix-searching in history, it's easy to get stuck in very old history. Then there is no easy way to get back to the end of history (I usually delete the current line and press enter...). history_last, with "Alt-<", fixes that. I think I would want to add the ^G shortcut to "cancel" history navigation and get back to last entry (as a synonym for "Alt-<").

@rfourquet rfourquet added the REPL Julia's REPL (Read Eval Print Loop) label Jul 16, 2017
@rfourquet
Copy link
Member Author

The failed test frim travis shows

	From worker 1:	compile: Test Failed
  Expression: Foo.g() === 97.0
   Evaluated: 2.0 === 97.0

It seems unrelated, but could this be a real bug popping up?

@fredrikekre
Copy link
Member

#22552

@rfourquet
Copy link
Member Author

I will merge in a few days if no objection.

@tkelman
Copy link
Contributor

tkelman commented Jul 23, 2017

This should probably be documented somewhere

NEWS.md Outdated
@@ -645,6 +645,8 @@ Library improvements
`enumerate(IndexLinear, iterable)` yields linear indices and
`enumerate(IndexCartesian, iterable)` yields cartesian indices ([#16378]).

* Jump to first/last history entries via "Alt-<" and "Alt->" ([#22829]).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... in the REPL via ...

@rfourquet rfourquet merged commit 29c78b7 into master Jul 27, 2017
@rfourquet rfourquet deleted the rf/repl-firstlast branch July 27, 2017 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants