On Thu, May 19, 2016 at 1:15 PM, Benno Schulenberg <address@hidden> wrote: >
...
> But now that I think about it: what would be really cool is if we > could bind this feature to a single key instead of to two: when all > the marked lines are commented, then they are uncommented; > otherwise, they are commented. (Because it doesn't make sense,
>...
Here's a first cut at a single-key comment/uncomment with the jetbrains heuristic (on top of my last patch). This is the logic
changes only
,
I
didn't change the keybinding stuff
yet
.
Maybe
is_blank_mbchar
() or
isblank
()
would be more correct
for testing empty lines
.
What do you think? Doesn't add as many lines as I thought. Removing the 2nd key will subtract a few.