Closed csantosb closed 3 years ago
I'm not sure how to implement the suggestion, since when you add new text, it wouldn't be clear what the prefix is supposed to be.
One thing you can do is highlight the --!
lines and run popup-dwim
; then it'll detect --!
as the prefix for that session.
You mean poporg-dwin
, right ? I only see an empty buffer, I'm afraid.
I was thinking in playing with poporg-comment-skip-regexp
in such a way that it considers lines starting with both, --
and --!
, as comments. This would allow me to insert doxygen doc along with my code using your great package. Unfortunately, I'm unable to do so by now, as I understand poporg
expects a uniform comment delimiter. Any ideas ?
Yes, I meant poporg-dwim
-- thanks. If the region is active, then poporg just uses the common prefix of all lines in the region. It works ok for me.
Tweaking poporg-comment-skip-regexp
to ignore --!
won't do what you want -- poporg still takes the largest common prefix as the thing to skip. It has to do this, because if you add new lines in the poporg buffer, then it has to know what to prefix them with when it inserts it back into the main buffer.
Hello,
I'm trying to handle this kind of comments
As you can see, I include standard language comment delimiters (--) along with more specific ones (--!). I wonder if it is possible to include both in the poporg buffer, removing the two delimiters at the same time.
Thanks !