-
Notifications
You must be signed in to change notification settings - Fork 167
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
unified heading completion and cycling #230
Comments
Thanks for suggesting this. I have the sense that the current cycling, promotion, demotion, and completion stuff is unnecessarily complex, so I like the overall idea. At the same time, but I'm also not sure if one keybinding (like I'm open to suggestions that take into account all of the other things that Another thing is that some people don't want to "complete" the heading markup. There is a setting I know that Keeping This is getting long, but another possible difference is that |
Maybe it would a good idea to first sketch out the current behavior and proposed new behavior in the various contexts (when the point is at text with no markup, heading, list item, bold/italic, etc.). |
Sure looks like it when reviewing your comment here. :)
Sure, whatever is good for you - i can override this on my side. Discoverability is the key here.
That makes sense, for sure.
That sounds like a bug that's orthogonal with this feature request, no? I mean you have that problem right now anyways...
Yeah, okay. Note that the "Convention" doesn't mention anything about top-level keybindings, that seems to be something restricted to a comment in GH-164... But I've always wondered about that..
Yah, that makes sense.
rst-adjust works only on the heading at point, and i would prefer markdown-complete/promote to do the same.
Didn't you just do exactly that? :) (BTW: what is the markup for keybindings here? can't find it in the GFM documentation. I also didn't know you could use GH-NNN for issues, that's neat!) |
right now, in markdown-mode, you can use three different commands/keybindings to operate on headings:
C-c C-]
:markdown-complete
C-c C--
:markdown-promote
C-c C-+
:markdown-demote
I find this a little confusing and cumbersome. In comparison, the ReST edit mode has this keybinding:
C-=
:rst-adjust
rst-adjust
is "smart": it will behave likemarkdown-complete
if the heading is not complete yet, then if it is, it will cycle through heading styles (i guess the equivalent ofmarkdown-demote
).Another thing that
rst-complete
does that is missing frommarkdown-complete
is the possibility of adding headings to arbitrary text. Right now, if I callmarkdown-complete
on a line that has no markup at all, I getNothing to complete at point
. It would be nice to simply add a heading similar to the surrounding ones instead.It would be great to have an equivalent of
rst-adjust
in markdown-mode. To have it bound tiC-=
is a bonus that i could do myself of course, but before working on a patch I figured I would ask here first. I am otherwise generally finding markdown-mode to be superior to the ReST mode in most points, and I especially enjoy the discoverability it offers through the menu system.Thanks for this great mode!
The text was updated successfully, but these errors were encountered: