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

Please consider changing the "new list item" hotkey #26

Closed
philsf opened this issue Sep 20, 2015 · 9 comments
Closed

Please consider changing the "new list item" hotkey #26

philsf opened this issue Sep 20, 2015 · 9 comments
Milestone

Comments

@philsf
Copy link

philsf commented Sep 20, 2015

Rationale: Emacs uses C-c C-j to create new items in some list environments, most notably LaTeX related modes. AFAIK, C-j is used for indentation in some programming modes, but I'm not used to using it.

Do you have any strong feelings for using this particular combo for this particular funcion? Would it be possible to use C-c C-j to create new list items instead? It would be easier users of content modes to use the same hotkeys for the same purposes in content-oriented modes.

BTW, I'm fairly new to markdown and GFM, and just found out about your emacs mode. Your docs accelerated my markdown learning. Kudos for both the code and the docs! Thanks!

@jrblevin
Copy link
Owner

Thanks for this suggestion. Actually, I picked M-RET originally because that's what I use in AUCTeX for inserting items. Now I see that it is an alias for C-c C-j. I see the logic in using C-c C-j for new list items, but the problem is that in markdown-mode C-c C-j is used for jumping in various contexts (footnote markers and definitions, reference links and definitions, etc.). We'd have to find a better keybinding for that--suggestions?

@philsf
Copy link
Author

philsf commented Sep 22, 2015

@jrblevin I think "jumping" would be rather well represented by the often common "next" and "previous" hotkeys.

I suppose you already use C-n and C-p for another purpose? What about C-c C-n and C-c C-p?

@philsf
Copy link
Author

philsf commented Sep 22, 2015

I hope this request doesn't disrupt the workflow of your current users. I'm just a newcomer with a wishlist ;-)

@jrblevin
Copy link
Owner

jrblevin commented Jan 9, 2016

I've been thinking again about a possible new keybinding for markdown-jump (currently C-c C-j). Here are some free ones under C-c C-?:

  • C-c C-r (for return)
  • C-c C-v (for visit)
  • C-c C-l (any good mnemonic here?)
  • C-c C-d (any good mnemonic here?)

Another option: Emacs uses both M-j and C-M-j for comment-indent-new-line. Perhaps we could override C-M-j (for jump)? Does anyone use C-M-j for this instead of M-j?

@jrblevin jrblevin added this to the v2.2 milestone Jan 9, 2016
@philsf
Copy link
Author

philsf commented Jan 15, 2016

  • C-c C-l
    How about Loop? I think it's more in tune with the semantics than the ones above. Does the feature actually loop, after reaching the last section?

My suggestion is: does latex-mode or AucTex have a similar feature, to jump between sections? If so, you could use the same keybinding as well.

@jrblevin
Copy link
Owner

Thanks for the mnemonic suggestion. I thought about AUCTeX, etc., but I couldn't think of any similar behavior. I should say this command doesn't jump between sections, rather, between reference link or footnote markers in text and their definitions below. For example, it will jump back and forth between line 1 and 3 for the reference link below.

[link][1]

[1]: http://github.com/

EDIT: I guess instead of "jump" with C-c C-l we could think of leap :)

@philsf
Copy link
Author

philsf commented Jan 15, 2016

Sorry for that, I just confirmed the bejavior in the docs after commenting. But since it does go back and forth, "loop" would be an usable mnenomic, right?

@jrblevin
Copy link
Owner

Sure. Now that I think about it, with C-c C-d we have definition, jumping between the link/footnote and the definition.

@jrblevin
Copy link
Owner

OK, here you go: 3bf565b. I do think C-c C-j is good for inserting list items, since there is clear precedence for it. I moved markdown-jump to C-c C-l. The other nice thing about that one is that it's adjacent to C-c C-o which can be used to follow/browse/open reference links (as opposed to visiting their definitions). Sorry it took me several months to finally decide on an alternative keybinding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants