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

Ocaml specific navigation commands #56

Open
andreas-roehler opened this issue Jun 10, 2015 · 9 comments
Open

Ocaml specific navigation commands #56

andreas-roehler opened this issue Jun 10, 2015 · 9 comments

Comments

@andreas-roehler
Copy link
Contributor

Suggest to introduce:

  • tuareg-forward-top-level
  • tuareg-backward-top-level
  • tuareg-forward-block
  • tuareg-backward-block
  • tuareg-forward-linewise
  • tuareg-backward-linewise

where cursor travels indents, resp. end of line

@mookid
Copy link
Contributor

mookid commented Feb 20, 2017

Actually, I guess that at least the two first commands can be extracted from PR #120 .

@Chris00
Copy link
Member

Chris00 commented Apr 11, 2019

The first two are provided by beginning-of-defun (with argument -1 and 1 respectively). For the remaining 4, please provide a description of what they are supposed to do.

@rgrinberg
Copy link
Member

@Chris00 I wouldn't prioritize implementing such navigation commands in elisp by the way. These navigation commands are far simpler to implement correctly in merlin. Let's just ask @Khady or @andreypopp to confirm.

@andreypopp
Copy link
Member

As far as I’m aware there’s no LSP methods for that kind of functionality. But yeah — I think we should provide extensions to LSP which makes implementing those features in editors simple.

@Chris00
Copy link
Member

Chris00 commented Apr 12, 2019

To indent the code or evaluate “phrases”, Tuareg should already somewhat understand the code structure. So maybe these commands are not hard to provide on top of this.

@Khady
Copy link

Khady commented Apr 13, 2019

Merlin already has support for some of those navigation functions btw.

@Chris00
Copy link
Member

Chris00 commented Apr 13, 2019

@Khady Good to know. May you let us know what are the names of the functions? Are they bound to some keys?

@Chris00
Copy link
Member

Chris00 commented Apr 13, 2019

Thanks. I indeed saw merlin-phrase-next and merlin-phrase-prev (bound to C-cC-n and C-cC-p). Do you know about other movements?

Chris00 added a commit to Chris00/tuareg that referenced this issue Apr 14, 2019
This is not part of Tuareg but it is useful because some users wonder
how to do that.  See ocaml#56
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

6 participants