3 ms·
The point about linting still stands, though. I recently had to grep for a note I was really sure was there, but didn't show in the roam-find- autocomplete. Tur
by TeMPOraL 2y ago
The point about linting still stands, though. I recently had to grep for a note I was really sure was there, but didn't show in the roam-find- autocomplete. Turns out, at some point I must've accidentally put a stray character that made properties section stop parsing, dropping the note from the system. Another case is when I occasionally add what I intend to be roam note as a new org file, and then forget to press the shortcut I have to give the file an ID.
(EDIT: Similarly, over the years I had a few cases of some TODOs I forgot about because I accidentally made a whole subtree stop parsing with a stray character. Rare as it is, I'm beginning to wonder if I shouldn't switch to modal editing a la vim, as those mistakes tend to happen when moving through the outline with "speed keys".)
In general, Org works well for me, but damn if the fragility of plaintext doesn't bite me every now and then.
- iLemming 2y ago> fragility of plaintext For that, I have .dir-locals.el file in the root of my notes folder with a single line: ((org-mode . ((eval git-auto-commit-mode 1)))) Even if I accidentally make a change, there's always trackable history
- TeMPOraL 2y agoI'm more of a "stick everything in Dropbox/OneNote" kind of person myself, as it gives seamless syncing of my Org files between multiple devices. For various reasons I've been relying on that much less recently, so I'll reconsider the git approach.
- iLemming 2y agoYes, I do the same, I use Resilio. I thought about switching to Syncthing, but my NAS supports Resilio out of the box, so I kept using it. I let my .git folder to be synced between devices and I never actually pushed anything to a "proper" git forge - I can't think of a practical use case for pushing my notes to GitHub/Gitlab. My git-autocommit technique only for tracking unforeseen changes - I was using Orgzly on Android, and one day I tried using its sync feature and it borked up a bunch of my notes, creating duplicate files, etc. I didn't like that.
- iLemming 2y ago> The point about linting still stands, though. Do you run org-lint on the save hook? I wonder if that'd be too distracting, or if it can be done silently unless some errors detected.
- TeMPOraL 2y agoNo, but this submission and thread just convinced me to try.
- alwayslikethis 2y agoYou can use a combination of auto-save-visited-mode (this will save to the actual file, rather than a backup) and gitwatch to auto commit all changes. It should prevent most forms data loss or desynchronization.