ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Coding Snacks

structured plaintextfile based note taker

<< < (5/7) > >>

Ampa:
I did have a play with WikidPad. And while I would prefer an open source option...
-johnk (February 11, 2008, 11:58 AM)
--- End quote ---

Err... WikidPad IS Open Source (and has been for a long time).

wikidPad is now open source. Visit the project homepage at http://wikidpad.python-hosting.com/
-first line of WikidPad website
--- End quote ---

justice:
We've started using Microsoft OneNote at work for coding snippets and i was impressed with its collaboration and sharing abilities an the ease of formatting so am now using both Wikipad and OneNote. Onenote is not plaintext, not free, and not as light on resources as any plaintext editor bit it's so easy to use. I used it before but using it synced between home and work definately gives it an edge.

Still use wikidpad too and it doesn't disappoint.

cedardoc:
Hi, yes I know this is an old topic, but my 2 cents isn't worth a whole new one.

I just had to add this really low tech approach to the txt file note approach.  You keep them all in one folder and refer to other notes (works with txt and rtf or whatever) and refer to other notes by using square brackets
like this [projects.txt] as long as there's only one listed per line, then just have this script in a running autohotkey file from the same folder:


;right mouse double click---------autohotkey to launch simple filename (cursor should be on line )
~RButton::

   If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
{
winactivate   
;Sleep 500   ; wait for right-click menu, fine tune for your PC
   send {esc}{Home}{Home}+{End}
;sleep 100

send ^c ;selects the entire line and copies it
ClipWait, .40        ; wait for the script to catch up.
winactivate
sleep 100
send {home}
linestring = %clipboard%
sleep 500

;find the position of the character "[", call it leftmark
bit1 = [
StringGetPos, leftmark, linestring, %bit1%
leftmark := leftmark + 2

;find the position of the character "]", call it rightmark
bit2 = ]
StringGetPos, rightmark, linestring, %bit2%
rightmark := rightmark + 1



stringlength := rightmark - leftmark


thefilename := SubStr(linestring, leftmark , stringlength)

 
IfExist, %thefilename%
{
run %thefilename%
}
IfNotExist, %thefilename%
{
MsgBox, 260,, the File "%thefilename%" does not exist. Create the file?
IfMsgBox Yes
{
    FileAppend, %thefilename%, %thefilename%
    SplashTextOn, 320, 100, file created
    Sleep, 400
    SplashTextOff
    run %thefilename%
}
else
    Exit
}
   }
Return


you can even make a new file by just writing the filename in your current document inside the brackets, then right double-click and voila! there's your new file.

Sorry, no tree structure, and any of the parts of this that I wrote (I stole the right double click part from someone) are probably sloppy from a real programmers perspective, but maybe it'll be useful for someone.. :-)

nudone:
nice idea - is there a problem with the script?

i copied and pasted the abvoe scripty bits into an .ahk file then tried to run it and it just comes up with an error...

cedardoc:
I took out some stuff I thought wasn't needed, maybe I took out something important by mistake  Try this:



;right mouse double click---------autohotkey to launch simple filename (cursor should be on line )
~RButton::

   If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
{
;  msgbox double right clicked
winactivate   
;Sleep 500   ; wait for right-click menu, fine tune for your PC
   

send {esc}{Home}{Home}+{End}
;sleep 100

send ^c ;selects the entire line and copies it
ClipWait, .40        ; wait for the script to catch up.
winactivate
sleep 100
send {home}
linestring = %clipboard%
sleep 500
;msgbox linestring is %linestring%
;find the position of the character "[", call it leftmark
bit1 = [
StringGetPos, leftmark, linestring, %bit1%
leftmark := leftmark + 2
;msgbox leftmark is %leftmark%
;find the position of the character "]", call it rightmark
bit2 = ]
StringGetPos, rightmark, linestring, %bit2%
rightmark := rightmark + 1
;msgbox rightmark is %rightmark%

;stringlength= %rightmark%-%leftmark%
stringlength := rightmark - leftmark
;msgbox stringlength is %stringlength%

thefilename := SubStr(linestring, leftmark , stringlength)

;msgbox thefilename is %thefilename%
IfExist, %thefilename%
{
run %thefilename%
}
IfNotExist, %thefilename%
{
MsgBox, 260,, the File "%thefilename%" does not exist. Create the file?
IfMsgBox Yes
{
    FileAppend, %thefilename%, %thefilename%
    SplashTextOn, 320, 100, file created
    Sleep, 400
    SplashTextOff
    run %thefilename%
}
else
    Exit
}
   }
Return




that's exactly what I have that works.  It has all the messagebox things I used trying to get it to work originally, but they're remarked out.  FYI sometimes I get a clipboard error thing the first time where it thinks the filename is empty.  In that case just cancel and it usually works the next time and after that.  Maybe a real programmer might be able to come along and really tune it up.  (that'd be nice)  Anyway, I hope this works for you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version