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

jump to numbered method in the REPL #22007

Merged
merged 1 commit into from
May 25, 2017

Conversation

fredrikekre
Copy link
Member

This PR makes it possible to jump to a numbered method from methods(foo), as can now be done for numbered stackframes (#19680).
I think this is really convenient sometimes, instead of figuring out the correct input and then use @edit to get there.

Example here:
https://asciinema.org/a/1r34os4hyyugzw0e2n3il2a5a?t=12

@KristofferC
Copy link
Sponsor Member

Cool! The fact that the printing of the numbering [#] is the same as for stack frames give a consistent experience that [#] can be jumped to.

@ararslan ararslan added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label May 21, 2017
@ararslan
Copy link
Member

This is really cool! Nice work!

@fredrikekre
Copy link
Member Author

Since some people seemed to like this I added some news.

@fredrikekre fredrikekre changed the title [RFC] jump to numbered method in the REPL jump to numbered method in the REPL May 22, 2017
@KristofferC KristofferC merged commit 4cbfd59 into JuliaLang:master May 25, 2017
@fredrikekre fredrikekre deleted the fe/jump-to-method branch May 25, 2017 10:02
fredrikekre added a commit to fredrikekre/julia that referenced this pull request May 26, 2017
which is currently done for text/html
this enables the jump-to-method thingy from JuliaLang#22007 to be used with methodswith(Foo) also
This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements, and some methods have very long signatures
fredrikekre added a commit to fredrikekre/julia that referenced this pull request May 26, 2017
which is currently done for text/html
this enables the jump-to-method thingy from JuliaLang#22007 to be used with methodswith(Foo) also
This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements, and some methods have very long signatures
fredrikekre added a commit to fredrikekre/julia that referenced this pull request May 30, 2017
which is currently done for text/html
this enables the jump-to-method thingy from JuliaLang#22007 to be used with methodswith(Foo) also
This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements, and some methods have very long signatures
KristofferC pushed a commit that referenced this pull request Jun 4, 2017
which is currently done for text/html
this enables the jump-to-method thingy from #22007 to be used with methodswith(Foo) also
This also prevents large spacing in the printing, since the general vector output prints with equal spacing for all elements, and some methods have very long signatures
@KristofferC
Copy link
Sponsor Member

KristofferC commented Jun 7, 2017

A cool "side effect" is that you can jump to methods after they are showed in the help for a function:

image

@fredrikekre
Copy link
Member Author

Thats nice, totally intended 😏

@kindlychung
Copy link
Contributor

Cannot jump to definition in Version 0.7.0-DEV.3619. What key did you press after the number? Is it just return?

@KristofferC
Copy link
Sponsor Member

Ctrl+q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants