[Github-comments] [geany/geany] Add support for automatic continuation of single-line comments (#2084)

elextr notifications at xxxxx
Thu Feb 7 23:30:59 UTC 2019


Yes, multiline `//` comments are common in C++, and as @codebrainz noted above the current Geany multiline comment behaviour is very "GNU C idiom we will force on everybody".  

So similar to my comment on #2082, this is language specific and either:

1. should be in a plugin, or

2. it should be language agnostic and driven by settings in the filetype file.  But given the number of doxygen permutations that may be difficult.  For example Python uses `"""` strings in strategic places as doxycomments.

So I suggest this is more likely a plugin thing.  Plugins should not be thought of as some sort of second class feature, and they have many advantages for developing new features like this, being outside core and because they can be disabled by users if they cause problems, they are not so heavily reviewed, so plugins and changes to them are usually accepted much faster.  They can be added to the Geany-Plugins collection and get packaged by distros, and if they become very popular they can become "core plugins" so they are automatically distributed with Geany itself.  And all still not in core.

Anyway, back to the actual functionality :grin: @danpla your suggestion of having to delete comments to end the block doesn't sound very satisfying, it just swaps having to type the comments with having to delete them.  The plugin could have an unbound keybinding that the user could bind, eg to `Windows-return`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2084#issuecomment-461635015
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190207/f9b25d3e/attachment-0001.html>


More information about the Github-comments mailing list