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

feat(#37): head tail movement support + deprecate previous API's #39

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

armed
Copy link
Collaborator

@armed armed commented Oct 1, 2023

fixes #37
Here is config example:

    ["E"] = {
      paredit.api.move_to_next_element_tail,
      "Jump to next element tail",
      -- by default all keybindings are dot repeatable
      repeatable = false,
      mode = { "n", "x", "o", "v" },
    },
    ["W"] = {
      paredit.api.move_to_next_element_head,
      "Jump to next element head",
      repeatable = false,
      mode = { "n", "x", "o", "v" },
    },

    ["B"] = {
      paredit.api.move_to_prev_element_head,
      "Jump to previous element head",
      repeatable = false,
      mode = { "n", "x", "o", "v" },
    },
    ["gE"] = {
      paredit.api.move_to_prev_element_tail,
      "Jump to previous element tail",
      repeatable = false,
      mode = { "n", "x", "o", "v" },
    },
  • paredit.api.move_to_next_element is deprecated in favour of paredit.api.move_to_next_element_tail
  • paredit.api.move_to_prev_element is deprecated in favour of paredit.api.move_to_prev_element_head

@julienvincent
Copy link
Owner

Sweet!

@armed armed merged commit 0e7db6a into master Oct 2, 2023
2 checks passed
@armed armed deleted the feat/#37-head-tail-movement-support branch October 2, 2023 01:12
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

Successfully merging this pull request may close these issues.

Moving between head and tail of next and previous elements
2 participants