Bug 366809 - undelete "Display Prefix", "Display Arguments" and "Display Postfix"
Summary: undelete "Display Prefix", "Display Arguments" and "Display Postfix"
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: plugin-snippets (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 20:59 UTC by zmi
Modified: 2019-05-19 15:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zmi 2016-08-15 20:59:02 UTC
I am missing additional meta fields in current snippets plug-in.

Deletion of additional  meta fields "Display Prefix", "Display Arguments" and "Display Postfix" is a HUGE step backward in the functionality.  In previous version of snippets plug-in it was possible to create groups of similar snippets with single name "class" and additional comments  using  "Display Prefix", "Display Arguments" and "Display Postfix" meta fields (if one has snippets with similar keyword name but with slightly different functional purpose), e.g. :
class X
class X // but with my default constructor
enhanced class X // but using inheritance from Y

where class is in name, X is in arguments, enhanced is in prefix and comments are in postfix fields (or any other combination) and I used them intensively to add explanations what each snippet does exactly.

Such named fields were visible in the code completion preview mode during typing in the name "class" and one was able to select readily the right one from the sublist.

Now this all is gone and there is no way to add any visible comment to snippet. Moreover, one is forced to write such_ugly_and _different_names of snippets, because the only "name" field doesn't allow to add even spaces! 

class_X
class_X_with_default_constructor
enhanced_class_X_with_default_constructor

Snippets plug-in should give overview of snippets and not only create a list of names. I agree that this is ok if you have about 20 snippets, you can overview all of them.  But if one has a library with about 1000 snippets with many groups of  5-20 snippets with the same keyword name?
Comment 1 Christoph Cullmann 2016-09-05 15:09:44 UTC
We did replace the implementation, if this is wanted again, somebody must step up to implement it, moving this to wishlist status.

We are happy to accept patches, otherwise, this is very unlikely to happen, as nobody is really maintaining this plugin :( (that was the reason to swap the implementation, the old one was even less maintained and broken in many cases)
Comment 2 Christoph Cullmann 2019-05-19 15:03:27 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann