Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Insert VA Snippet context menu bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Apr 16 2020 :  07:34:15 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Apr 16 2020 :  10:40:32 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Apr 16 2020 :  10:47:33 AM  Show Profile  Reply with Quote
The insertion might be by design (as its seemingly working without failing), the not disabled menu entry most certainly is not.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Apr 16 2020 :  11:21:43 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000