Git Product home page Git Product logo

Comments (9)

jrblevin avatar jrblevin commented on June 23, 2024

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?

from markdown-mode.

philsf avatar philsf commented on June 23, 2024

@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?

from markdown-mode.

philsf avatar philsf commented on June 23, 2024

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

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

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?

from markdown-mode.

philsf avatar philsf commented on June 23, 2024
  • 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.

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

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 :)

from markdown-mode.

philsf avatar philsf commented on June 23, 2024

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?

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

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

from markdown-mode.

jrblevin avatar jrblevin commented on June 23, 2024

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!

from markdown-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.