Main Area and Open Discussion > General Software Discussion
SourceSnap v. 1.52
MilesAhead:
This isn't a snippet manager by any means. Just a hotkey utility designed for snatching selected text and saving to a file. Mainly for saving source snippets from forums. Select text/source, hit a hotkey, a File Save Dialog is presented. Another hotkey is available to edit the last saved file in the associated editor.
Also has a mechanism for appending a snippet, preceded and followed by a new line, to the Snap file. Hotkeys and Snap file name are adjustable via Tray Menu. Also has Glassy border on dialogs with selectable background color on system with Glass enabled.
See the Readme for issues involving setting the default edit program for file types on Vista/W7.
http://www.favessoft.com/SourceSnap.zip
MilesAhead:
Note that I made some improvements and changed the name to SourceSnap. I just think it sounds snappier than AutoPaste, esp. since I already have a "paste thing" called Pasty. :)
Now it has 2 save methods. Save selection to a new file, or append snippet to the snap file. You can open either the last saved file or snap file in the associated editor using the Tray Menu. There's also a hotkey for editing the last saved file.
It's just a convenience utility, not any kind of snippet database.
To download scroll to the bottom of this page:
http://www.favessoft.com/hotkeys.html
Curt:
Thanks for writing this, Miles. I just found it.
Does it need to be "hardwired" to Notepad? I have AkelPad as default for .txt, but SS is opening them (Alt+F9) in Notepad.
MilesAhead:
I used the 'edit' verb because I didn't want scripts to launch and run. Guess I'll change it to just open the file for .ini and .txt file types? I'm just trying to avoid a surprise if someone captures a program and it runs when all he wanted was to edit it. So I'll try this first.
Doesn't seem to be an easy way to change the default program used to edit a file type like there was in XP.
edit: there seems to be no easy solution in Vista to change the default program to edit a file type. I've put a question on Vista forums. Maybe what I can do as a work-around is to put an .ini option for default editor. I'll add an Editor= option and just put the complete path to your editor. That should work until I find out what's what. I don't comprehend why they keep fixing stuff that isn't broken. Sheesh!! :)
MilesAhead:
I was going to add an .ini option for default editor, but that would be cumbersome for each file type. I found a freeware on source forge that does it. It's called Types.
http://downloads.sourceforge.net/types/types-1.3.0-bin.zip
For instance on my system it showed an 'open' action for txtfile type .txt but no 'edit' action. I have EditPad Lite as my text editor and that was the default for 'open'. I just typed the word edit in the action line and clicked the + to add a new action, then copied the EditPad Lite info from the open line. Works fine. It requires .net 2.0 or later but if you're on Vista it should be on there by default.
If you're on XP you should be able to set the edit option the old way via OpenWith.
Here's the article I found on Howto Geek
http://www.howtogeek.com/howto/windows-vista/change-the-default-editor-for-batch-files-in-vista/
Navigation
[0] Message Index
[#] Next page
Go to full version