Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Snippet order in clipboard

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
BeigeAlert Posted - Jan 14 2024 : 4:37:33 PM
When I copy snippets from the snippet editor (eg "Ctrl + A" in the snippet list on the left side in the editor, then "Ctrl + C"), they're out-of-order when I paste them into a text editor. I've been keeping my snippets in source control (git), and it makes it difficult to see the changes when they've been shuffled around. It would be wonderful if snippets appeared in the clipboard alphabetically by name, like they do in the editor itself.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 26 2024 : 06:46:10 AM
I am glad this helps, and yes, it should be a great deal simpler!

If you really want to get clever, you can try setting up junction points in the file system, so the folder holding these snippet files also appears inside your source control directory tree, without needing to copy any files back and forward.
BeigeAlert Posted - Jan 25 2024 : 5:54:17 PM
quote:
Originally posted by feline

How are you storing the snippets in git? Are you storing the actual TPL files, or are you manually extracting and saving the XML that gets copied out of the dialog?

The TPL files are just text files, so they can simply be stored directly in source control, and you can diff and merge them like any normal text file. The TPL files are stored in the directory:

%APPDATA%\VisualAssist\Autotext
one per language.



Aha! This opens up much better possibilities!

I had been simply doing Select All --> Copy in the VA Snippets window, then pasting it into notepad++, and then saving that as an xml document into my repository somewhere.

For some reason I had been under the impression that the snippets file was stored in some secret location, or as part of some kind of archive and in a not easily readable format... knowing they're stored in plaintext like this now, this opens up some interesting possibilities. Thank you! :D
feline Posted - Jan 15 2024 : 08:06:45 AM
How are you storing the snippets in git? Are you storing the actual TPL files, or are you manually extracting and saving the XML that gets copied out of the dialog?

The TPL files are just text files, so they can simply be stored directly in source control, and you can diff and merge them like any normal text file. The TPL files are stored in the directory:

%APPDATA%\VisualAssist\Autotext
one per language.

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