# Juno's return-from-goto function

**URL:** https://discourse.julialang.org/t/junos-return-from-goto-function/54645
**Category:** Juno
**Created:** [February 4, 2021, 8:18pm UTC](https://discourse.julialang.org/t/junos-return-from-goto-function/54645 "2021-02-04T20:18:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marty0801](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marty0801/32/12715_2.png) [@marty0801](https://discourse.julialang.org/u/marty0801)
#### Post date: [February 4, 2021, 8:18pm UTC](https://discourse.julialang.org/t/junos-return-from-goto-function/54645/1 "2021-02-04T20:18:07Z")

</div>

A continuation of [this question](https://discourse.julialang.org/t/juno-how-go-back-from-jump-to-function-definition/33855), I rely on the `go-to-definition` function in Juno (`Ctrl-j Ctrl-g`), but it’s not functioning optimally for me. (User error I’m sure.)

Because I’m forgetful, I often need to alternate quickly between the context of the function call and its definition. Doing so is cumbersome in Juno. The problem is that `return-from-goto `returns the cursor not to the function whose definition I was just querying, but rather to the beginning of that line. Is there a way to modify this behavior so that returning from goto always returns to the same spot in the file?

Thank you!

---

<div class="post-metadata">

### Author: ![marty0801](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marty0801/32/12715_2.png) [@marty0801](https://discourse.julialang.org/u/marty0801)
#### Post date: [February 6, 2021, 11:31am UTC](https://discourse.julialang.org/t/junos-return-from-goto-function/54645/2 "2021-02-06T11:31:18Z")

</div>

Use pane:move-active-item-to-top-of-stack (Ctrl-Tab)
