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

juvix-mode: Would be nice to have a choice on where to jump #1

Open
mariari opened this issue Jul 1, 2022 · 0 comments
Open

juvix-mode: Would be nice to have a choice on where to jump #1

mariari opened this issue Jul 1, 2022 · 0 comments

Comments

@mariari
Copy link
Member

mariari commented Jul 1, 2022

In my tak benchmark, I have to layout the file like

terminating tak      :       ;
terminating tak-then :       Unit -> ;
            tak-else :   Unit  ;

tak-then x y z unit 
  (tak (tak (-① x) y z)
       (tak (-① y) z x)
       (tak (-① z) x y));

tak-else z unit  z;

tak x y z 
  if (isLT (compare y x))
     (box (tak-then x y z))
     (box (tak-else z));

when I Meta point on tak-else, it jumps to the type definition, however this can be quite far from the defn if I use a lot of mutually recursive functions.

Would be cool if I get a menu like

https://pomf2.lain.la/f/hadaxg65.png
https://pomf2.lain.la/f/4zqn99nj.png

It makes Meta point a bit tedious (having to go through the menu), but makes it nice to jump to the type spec or the implementation

@cwgoes cwgoes transferred this issue from another repository Jul 13, 2022
@jonaprieto jonaprieto changed the title minijuvix-mode: Would be nice to have a choice on where to jump juvix-mode: Would be nice to have a choice on where to jump Aug 5, 2022
@jonaprieto jonaprieto transferred this issue from anoma/juvix Jan 24, 2023
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

1 participant