News for hackers. Stuff that matters.
Re:Lowercase – A simple way to take and share notes by pkulak on Friday May 03, 2024 @02:30PM (#40250746)
I went through a bunch of note-taking apps before I settled on a git directory that's auto-synced once an hour. This bash script is all it takes.

      cd ~/notes

      if [[ ''$(git status --porcelain) ]]; then
       git stash save
       git pull --rebase
       git stash pop || true
       git add .
       git -c "user.name=Phil Kulak" -c "[email protected]" commit -m "''$(date)"
       git push origin main
      else
       git pull
      fi
Re:Lowercase – A simple way to take and share notes by bartvk on Friday May 03, 2024 @03:59PM (#40251723)
What about mobile? Or don't you take notes there?
Re:Lowercase – A simple way to take and share notes by escapecharacter on Friday May 03, 2024 @04:09PM (#40251831)
For me, this is always the gap that feels missing. - I want to take and view notes on various devices: mobile, personal computer, work computer, randomly logged in ad-hoc machine. - I want notes to not require me to be online all the time while writing (I work a lot on plans, or in remote locations without reliable internet) - I want notes to make reasonable assumptions about syncing, biasing on the side of avoiding data loss over the appearance of magically "just working" - I want to be able to search across all notes at the same time as any device's file system.

Simplenote used to solve this. Then, recently, they started to become less reliable at the same time as having a very large subscription price increase. Apple Notes is now okay, but awkward to log in or sync with a non-Apple device. I tried having a bunch of .txt files synced via Dropbox, but while the Dropbox mobile app will let you view offline files, it won't let you edit them unless online.

Re:Lowercase – A simple way to take and share notes by bobbylarrybobby on Friday May 03, 2024 @04:56PM (#40252292)
is iCloud.com really that bad?
Re:Lowercase – A simple way to take and share notes by insane_dreamer on Saturday May 04, 2024 @10:17AM (#40257850)
it used to be; pretty decent now
Re:Lowercase – A simple way to take and share notes by jen729w on Friday May 03, 2024 @07:56PM (#40253614)
Bear is the app you need.

It’s paid, your notes are in a database (easily exportable as .txt), but I’ve used it for years and years and it’s one of those rare apps that ‘just works’.

And it’s something like $25 a year. Utterly reasonable.

Re:Lowercase – A simple way to take and share notes by phero_cnstrcts on Friday May 03, 2024 @08:51PM (#40253903)
All subscriptions are unreasonable.
Re:Lowercase – A simple way to take and share notes by chrisdbanks on Saturday May 04, 2024 @01:32AM (#40255137)
My gym membership seems pretty reasonable, as do my Netflix subscription, and HBR subscription.
Re:Lowercase – A simple way to take and share notes by escapecharacter on Tuesday May 14, 2024 @08:09PM (#40361589)
It's reasonable to charge a subscription for anything that requires someone else to keep a computer running.
Re:Lowercase – A simple way to take and share notes by escapecharacter on Tuesday May 14, 2024 @08:14PM (#40361630)
One of my needs is to be able to access this from a web client, in case I'm on someone else's machine, or Windows/Linux. Seems like that isn't supported yet, but coming? https://community.bear.app/t/bear-2-0-web-client/8358/13
Re:Lowercase – A simple way to take and share notes by catapart on Friday May 03, 2024 @08:13PM (#40253712)
I'm building a note-taking app, so I hope you don't mind, but I was wondering if you might describe how you "search" your notes while using a device's file system search? For desktop, I might use a tool like grep to do that, but that's pretty developer-y, so if you're doing something more user-friendly, that's interesting to me. What is more interesting to me, though, is what you're using on mobile to do this? I've never, personally, used my mobile's file system search to discover text in notes. But I'm on Android, so there's not really only one 'file system' with a search interface.

My thought here is it that the app is going to be saving simple text files either plaintext or richtext (markdown/html), so it should be able to provide this for you, but I haven't even considered that as a feature so I would want to test it to see if there were any rough edges to polish. Any suggestions you have would be appreciated!

Re:Lowercase – A simple way to take and share notes by escapecharacter on Tuesday May 14, 2024 @08:08PM (#40361582)
What I really mean is that I can use Spotlight on macOS, or Explorer on Windows. Since a lot of notetaking systems are cloud-based, I need to specifically open the notetaking app to search them. I can't search everything at once.
Re:Lowercase – A simple way to take and share notes by catapart on Thursday May 23, 2024 @12:48PM (#40456986)
Oh, awesome! Thanks for the feedback!

Yeah, that makes sense. I hate Window's file explorer search, but I still end up using it if I'm just looking for a filename, so I definitely understand that as the de-facto standard on that platform. I'm not as familiar with MacOS in general, and especially not spotlight, but it does appear to be a lot more useful.

But yeah, I think storing the files in the device's file system should address this concern. I appreciate you circling back to fill me in, though!

Re:Lowercase – A simple way to take and share notes by hnaccter on Friday May 03, 2024 @10:50PM (#40254425)
I use Logseq which writes to markdown files, and then sync/diff against a Logseq folder in iCloud. It generally works. I can write changes on my phone using the app, and it’ll pull it back to my computer once the phone goes online. If there’s pending changes on both sides, rare given Logseq’s daily file structure, I have it prompt on my computer to fix.

The dual folder structure helps identify the collisions and manage them appropriately, versus whatever handling iCloud would do.

It’s probably still awkward on a non-Apple device as I’m sure iCloud web access is not great, but it works.

Re:Lowercase – A simple way to take and share notes by hahajk on Saturday May 04, 2024 @06:41AM (#40256534)
I went through the same process a few years ago. Your requirements are very similar to mine. Amplenote is what I settled on. Cross platform, quick UI, and very good in no-network and (even more commonly) poor-network conditions. Even the web app uses local storage and works offline.
Re:Lowercase – A simple way to take and share notes by desmond373 on Saturday May 04, 2024 @07:20AM (#40256769)
I made a comment about zettel notes on the parent, have a look. It fixes some of the problems you talk about. Not sure if theres an apple version.
Re:Lowercase – A simple way to take and share notes by eternityforest on Saturday May 04, 2024 @04:36PM (#40260105)
Android is why I use Google Keep. There's lots of features I wish it has, but ultimately the important one for me is that I can take a note any time with no delay or waiting for apps to load
Re:Lowercase – A simple way to take and share notes by nevf on Monday May 06, 2024 @06:42AM (#40273119)
Clibu Notes is a note-taking and Personal Knowledge Management (PKM) app that works on desktop, tablet, and smartphone. Local first, fast with first class editing, backlinks etc. Simple, effective note taking, always accessible everywhere. See Clibu.com
Re:Lowercase – A simple way to take and share notes by pkulak on Friday May 03, 2024 @05:19PM (#40252494)
I set up PolyGit on my phone. So I can take new notes by pulling, editing, and the pushing. It's a pain, not gonna lie. But I don't take notes away from any of my computers that often. Mostly I'm in a work meeting, reading an email, something like that, so it doesn't come up too often.

All it would take to be awesome would be to find a mobile git app that required fewer button presses, so I'm hopeful.

Re:Lowercase – A simple way to take and share notes by eterps on Saturday May 04, 2024 @02:02AM (#40255271)
I use the Markor app from F-Droid. The notes are plain text or markdown files in a folder that is synced to my desktops using Syncthing. It felt incredibly liberating once I got this setup working.
Re:Lowercase – A simple way to take and share notes by desmond373 on Saturday May 04, 2024 @07:17AM (#40256756)
Ive been using zettel notes, on fdroid. It can handle the git syncing. Keys are managed in app as well which i have mixed feeling about but overall its been great for moving from obsidian to a completly self managed system.
Re:Lowercase – A simple way to take and share notes by gradientsrneat on Saturday May 04, 2024 @02:04PM (#40259250)
Given their workflow, I assume they are either not using mobile, or are using something like Termux.
Re:Lowercase – A simple way to take and share notes by zie on Monday May 06, 2024 @03:49PM (#40278761)
I do the same thing as pkulak. For mobile, I made a little readonly app that lets me view notes from any web browser. It's Python using Hyperdiv.io, because I wanted to play with Hyperdiv.

Updates are triggered from the git repo push, so as long as I remember to sync before I run off(or wait for it to auto-sync)

Re:Lowercase – A simple way to take and share notes by mike_ivanov on Friday May 03, 2024 @03:24PM (#40251309)
I'm doing the same with ZimWiki, except for running the sync script as a custom tool in the UI.
Re:Lowercase – A simple way to take and share notes by teaearlgraycold on Friday May 03, 2024 @04:04PM (#40251781)
Why the two single quotes before the subshells?
Re:Lowercase – A simple way to take and share notes by pkulak on Friday May 03, 2024 @05:19PM (#40252509)
Re:Lowercase – A simple way to take and share notes by darknavi on Friday May 03, 2024 @02:41PM (#40250858)
And sensible merge conflict resolution vs normal cloud saves.
Re:Lowercase – A simple way to take and share notes by pkulak on Friday May 03, 2024 @02:59PM (#40251036)
Yeah, every year or so I get a merge conflict, and then the whole things stops syncing and it takes me a week to notice before I go in and resolve it. It's not perfect, but I can't be assed to fix something that happens once a year. :/
Re:Lowercase – A simple way to take and share notes by darknavi on Friday May 03, 2024 @03:11PM (#40251175)
Maybe you can beep the motherboard if it happens. Would only take a few hours to notice then :)
Re:Lowercase – A simple way to take and share notes by tomsmeding on Saturday May 04, 2024 @08:21AM (#40257107)
> it takes me a week to notice before I go in and resolve it

Perhaps the `|| true` on the `git stash pop` could have a bit more handling :)

Re:Lowercase – A simple way to take and share notes by dvt on Friday May 03, 2024 @02:39PM (#40250840)
Ah yes, the classic HN Dropbox response :) On a more serious note, I'm not into note-taking apps as much as your average HN'er, but there's probably a business here. If anything, Obsidian has at least been wildly successful these past few years (my dad loves it).
Re:Lowercase – A simple way to take and share notes by mattstrayer on Friday May 03, 2024 @02:37PM (#40250822)
honestly love the simplicity of this
Re:Lowercase – A simple way to take and share notes by laurels-marts on Friday May 03, 2024 @05:20PM (#40252522)
But what do you use to actually take the notes? After trying a bunch of apps I settled on VS Code with a custom Profile that has all the settings, extensions and UI states that I need for taking markdown notes.

I realised that I already spend at minimum 8-10 hours a day in VS Code, why learn another app with all the different quirks, UI and key bindings...

Re:Lowercase – A simple way to take and share notes by dv35z on Saturday May 04, 2024 @01:54AM (#40255226)
I'm on a similar path (VSCodium + FOAM plugin, and then using MkDocs & Roam-links plugin to export as HTML). Can you share some of the VSCode plugins / settings / color schemes / etc which have been working well for you?
Re:Lowercase – A simple way to take and share notes by pkulak on Saturday May 04, 2024 @02:11AM (#40255312)
Neovim
Re:Lowercase – A simple way to take and share notes by hu3 on Saturday May 04, 2024 @09:35AM (#40257562)
Often I need to consult notes on my phone, is there an app to comfortably browse and search notes in phone?

Preferably offline with syncing.

Today I use Joplin but it has custom file format.

Re:Lowercase – A simple way to take and share notes by bgood456 on Saturday May 04, 2024 @10:23AM (#40257892)
I like markor
Re:Lowercase – A simple way to take and share notes by khimaros on Saturday May 04, 2024 @12:44PM (#40258785)
and git synchronization with MGit on Android
Re:Lowercase – A simple way to take and share notes by nevf on Monday May 06, 2024 @06:40AM (#40273110)
Clibu Notes is a note-taking and Personal Knowledge Management (PKM) app that works on desktop, tablet, and smartphone. Local first, fast with first class editing, backlinks etc. Simple, effective note taking, always accessible everywhere. See Clibu.com
Re:Lowercase – A simple way to take and share notes by enasterosophes on Friday May 03, 2024 @05:44PM (#40252737)
To this, it works well to add inotifywait to detect when files are saved. You can pipe the save detections to a loop that git-commits only that one file, providing a more granular history with very little cost.
Re:Lowercase – A simple way to take and share notes by _wire_ on Friday May 03, 2024 @10:19PM (#40254293)
> if [[ ''$(git status --porcelain) ]]; then

> ... "''$(date)"

What is the purpose of the '' syntax?

Re:Lowercase – A simple way to take and share notes by pkulak on Saturday May 04, 2024 @02:11AM (#40255314)
Sorry. Nix. And it’s too late to edit.
Re:Lowercase – A simple way to take and share notes by _wire_ on Saturday May 04, 2024 @02:24AM (#40255377)
Thx, just wondering if that was an arcane bash idiom. Very tricky to get anything useful from the web about ''.
Re:Lowercase – A simple way to take and share notes by DemocracyFTW2 on Saturday May 04, 2024 @08:44AM (#40257240)
Bash and Perl, where any number of punctuation marks in a row could plausibly mean something
Re:Lowercase – A simple way to take and share notes by Diederich on Saturday May 04, 2024 @01:43AM (#40255184)
I've been running this for about 15 years now:

  ddiederi@ddiederi-mac notes % while [ 1 ]
  do
  git add -A .
  git commit -am wip;git push;git pull
  sleep 6
  done
Re:Lowercase – A simple way to take and share notes by dotancohen on Saturday May 04, 2024 @01:43PM (#40259131)
Same here. After going through different formats (Zim, Markdown, org-mode) I settled on org-mode and haven't looked back. I think that other note-taking systems only exist because whoever wrote them hasn't tried org-mode.

I also use vdirsyncer with DavX to sync my phone's calendar and contacts to my notes directory, so that is backed up as well - all in the same syncing script.

  #!/usr/bin/env bash
  cp -a ~/.vdirsyncer/calendars/ ~/Notes/pim/
  cp -a ~/.vdirsyncer/contacts/ ~/Notes/pim/
  git add \*
  git commit -am "$(hostname)"
  git pull
  git push
  echo ''
  git status