"Create Snippet From Selection" context-menu entry

Milian Wolff mail at milianw.de
Fri Feb 12 00:41:22 UTC 2010


On Thursday 11 February 2010 23:46:23 David Nolden wrote:
> Hi! I have a problem with this context-menu entry in the editor. The
> problem is that it shows up _always_, and it shows up in a very bad place,
> without any separation from the code-navigation features.

If you tell me how I could separate it from the code-navigation entries, I'll 
happily do so. And regarding the "shows up always": I can change it to only 
show once a selection is actually available, but that imo decreases the 
discoverability of that feature immensely. What do others think?

> Yes in same cases it's greyed out, but anyway I think this anyway is not
> something you will be doing all the time. Such "random plugin" entries
> should only show up if there is a real indication that the user is
> actually using that plugin, for example it should definitely not show up
> if I don't even have the snippet tool view added to my mainwindow.

Well, the question here is: Is a plugin supposed to be "working" or 
"activated" without it's view? In the snippets case it is not imo - just like 
you say, but what about other plugins? And this also imposes a bit of 
additional cruft on my side (i.e. track how many views are available and only 
show if the number of views is higher than 0.

But actually snippets are "working" without a snippets view. You just can't 
edit them.

Why don't you simply deactivate the snippets plugin if you don't want to use 
it?

> IMO the right place for this probably infrequently used action thing be the
> main-menu (maybe Editor -> Snippets or something like that).

You may use it infrequently, I happen to use it quite often to create new 
snippets. It's much faster than writing it in the snippet dialog. And I fear 
we all could argue about what is infrequently used and what not ;-)

Greetings
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100212/ebc4ffdb/attachment.sig>


More information about the KDevelop-devel mailing list