[tw] Re: TiddlyWiki and Git

2017-12-08 Thread Jed Carty
Diego,

I experimented with this a bit before making the multi-user plugin. For my 
group it was much easier to just make the wiki folder a git repo and have a 
script that would pull any new changes before starting the server and push 
current changes after you are finished. It works well for things that are 
only adding to the wiki (like my companies expense reports and invoices 
wikis) but for anything that actually has collaborative editing git become 
unwieldy and the ease of using tiddlywiki is lost when you have to manually 
fix conflicts. That was the big motivation for me to make the multi-user 
plugin.

As far as displaying old revisions goes, I ran into so many weird edge 
cases converting git commits into something usable by the wiki that I gave 
up pretty quickly. I will probably revisit it in the future but I think it 
will take some significant effort to make it work smoothly.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fc261277-0005-42bc-8aa8-62468d99c73b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki and Git

2017-12-07 Thread Diego Mesa
I've recently been thinking about TW and git and had some ideas and 
thoughts:

Using git for tiddler revisions:

   - Overwrite the save method of tiddlers so that when you save a tiddler, 
   a new commit object is made.
   - Every tiddler has a "revisions" tab in the info pane, showing previous 
   versions of that tiddler

Working with multiple users:

   - Each tiddler is just a file, so multiple users working on one 
   tiddlywiki, is really just multiple users working from one repository 
   consisting of multiple files. 
   - Everytime TW first loads, it could "pull" the latest changes from a 
   remote location and ask the user to reconcile any conflicts. Your entire TW 
   session is then just really just making of a series of commit objects 
   locally, which can be "pushed" at a later time.  



On Friday, October 20, 2017 at 3:18:44 PM UTC-5, Rob Hoelz wrote:
>
> If you *do* end up using TiddlyWiki with Node and use Git to sync across 
> machines, one thing to keep in mind is that the node daemon loads all of 
> the tiddlers into RAM at startup - meaning if you do a pull, the tiddlers 
> served up won't reflect changes in the repo until you restart the daemon.
>
> On Thursday, October 19, 2017 at 12:13:58 PM UTC-5, Derek Mahar wrote:
>>
>> Thank you all for your suggestions!
>>
>> On Wednesday, 18 October 2017 21:55:58 UTC-4, jwd wrote:
>>>
>>> It was the issues with git merge conflicts between single TiddlyWiki 
>>> HTML files that pushed me over the edge to adopting the node.js / single 
>>> file per tiddler approach and subsequently the TiddlyServer wrapper around 
>>> that.
>>>
>>
>> I really like TiddlyWiki, but I'm trying to limit to Git and SSH the 
>> tools that I need to synchronise and share my notes.  (Turns out that I 
>> don't really need Nginx, afterall, because I don't need HTTP/S.)  I'm 
>> leaning towards keeping a collection of Markdown notes, the changes to 
>> which I'll track in a Git repository.
>>
>> If I were starting with a TW containing a large number of tiddlers, I'd 
>> most certainly bite the bullet and install Node.js.  However, I'm actually 
>> starting with a small number of Markdown notes which I store in Turtl on 
>> Framanotes, old Gnotes, and some notes stored on Google Keep and Evernote.  
>> My goal is to migrate and consolidate these onto my own FreeBSD NAS using a 
>> minimum set of tools, preferably limited to ones that I've already 
>> installed.
>>
>> Derek
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d5857474-9918-4cc5-8f82-3ba218750c5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki and Git

2017-10-19 Thread Derek Mahar
Thank you all for your suggestions!

On Wednesday, 18 October 2017 21:55:58 UTC-4, jwd wrote:
>
> It was the issues with git merge conflicts between single TiddlyWiki HTML 
> files that pushed me over the edge to adopting the node.js / single file 
> per tiddler approach and subsequently the TiddlyServer wrapper around that.
>

I really like TiddlyWiki, but I'm really trying to avoid too limit the 
tools that I need to synchronise and share my notes to Git and SSH.  (Turns 
out that I don't really need Nginx, afterall, because I don't need 
HTTP/S.)  I'm leaning to using a simple collection of Markdown files.

If I were starting with a TW containing a large number of tiddlers, I'd 
most certainly bite the bullet and install Node.js.  However, I'm actually 
starting with a small number of Markdown notes which I store in Turtl on 
Framanotes, old Gnotes, and some notes stored on Google Keep and Evernote.  
My goal is to migrate and consolidate these onto my own FreeBSD NAS using a 
minimum set of tools, preferably limited to ones that I've already 
installed.

Derek

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/98db9ec3-6853-4a67-af25-2ca4354d9f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki and Git

2017-10-18 Thread jwd
It was the issues with git merge conflicts between single TiddlyWiki HTML 
files that pushed me over the edge to adopting the node.js / single file 
per tiddler approach and subsequently the TiddlyServer wrapper around that.

If your goal is sharing and synchronizing TW contents made on different, 
disconnected platforms I was unable to find another, easier way.

I've also found that, for a subset of tiddlers that I want to 'share' 
between two or more TiddlyWikis, the includeWikis capability of 
tiddlywiki.info works well for me. I have work, home, and a few other 
wikis, for example, all in a git repo. Changes I've made to TiddlyWiki 
configuration itself I keep in a sibling, Common TiddlyWiki tiddler 
collections; that I include in the sibling wikis via

  "includeWikis": [
"../Common",
  ],

That way I make the configuration change once and, on a node.js / 
TiddlyServer restart (and browser refresh), they all get the same 
configuration. If its something new I'll try it in one wiki and, once I'm 
satisfied, shuffle the tiddler file from its original wiki into the Common 
collection as part of git repo management. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1581e21-1bea-4a03-9f02-e98567937c78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki and Git

2017-10-18 Thread PMario
On Wednesday, October 18, 2017 at 7:23:33 PM UTC+2, Derek Mahar wrote:
>
> How difficult is it typically to resolve merge conflicts between two 
> TiddlyWiki HTML files?  I'm considering using TiddlyWiki, Nginx, Git, and 
> SSH to share and synchronise my TiddlyWiki notes.
>

As Rob wrote, that's probably not the best way to go. 

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f32c464-1158-42eb-b5c9-7c7398a12f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki and Git

2017-10-18 Thread Jed Carty
I have never tried. I imagine it would be the sort of thing that would make 
me cry.

If you use the node version than the diffs for the individual tiddlers may 
not be horribly difficult.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e1395fb-c81f-4f59-b979-cf1822937104%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.