Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Insert VA Snippet context menu bug

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Uniwares Posted - Apr 16 2020 : 07:34:15 AM
I have bound the "Insert VA Snippet" context menu to a keyboard shortcut.
Now when I have no selection and the menu opens, the menu entries related to selections are active instead of disabled/grayed out. Although some just dont do anything (like Create Snippet from selection), some insert a "snippet with $selected$" without a selection.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 16 2020 : 11:21:43 AM
Apologies, you are right, I was so focused on inserting snippets that I didn't stop and consider creating a snippet with nothing selected. I don't think I have ever tried that, but yes, it's a bug:

case=142139
Uniwares Posted - Apr 16 2020 : 10:47:33 AM
The insertion might be by design (as its seemingly working without failing), the not disabled menu entry most certainly is not.
feline Posted - Apr 16 2020 : 10:40:32 AM
I get the same behaviour, but I always assumed this was by design. Taking a simple example, I have the C# snippet

if ($end$)
{
	$selected$
}

which also has the shortcut "if" assigned to it. Obviously there is nothing to insert in the place of $selected$ when this is triggered with the shortcut, so the insert menu is just doing the same as typing the shortcut.

Some of the snippets don't have shortcuts, so they aren't listed on the right hand side of the menu, but you can still insert them with nothing selected, even though this may well be less useful.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000