In my .bash_profile I essentially just `open --background -e "...$(date +%F).txt" &`.
Since I'm in the CLI daily for work, I get day-stamped files passively opened without having to think about it. It's a nice quiet reminder to keep notes throughout the day, and it all just goes into a folder in dropbox that I can trivially `grep` or add with other tools or add side-files (typically "date - stuff.ext" so they appear next to the day's notes).
Top tip is to add meta tags. I suffix them with a colon to help with searching. For example, the section containing my git notes begins with this line: Git notes: / Git: / Git commands: / Github: / Git bash:
And any time I search for something I didn't have a tag for, then I add a new one, even misspellings.
Ex. :label1:label2:labeln:
#! /usr/bin/env bash
cd ~/share # or wherever
echo >> notes.txt
date >> notes.txt
if [[ $# -ne 0 ]]; then
echo $@ >> notes.txt
fi
vim "+normal Go" +startinsert notes.txt
Enough to see if this will work for me.I also aliased this to something short so I can quickly view notes starting at the bottom: vim "+normal G" ~/share/notes.txt
nvim -c "+normal ggO# $(date)" -c ':s/$/\r/' -c 'se nohlsearch' notes.md
Would be interested in knowing if I can make this nicer/more efficient.Do you mind sharing how you have setup Emacs to do that? Thanks!
(defvar org-journal-file "~/Dropbox/org/engjournal.org"
"Path to OrgMode journal file.")
(defvar org-journal-date-format "<%Y-%m-%d %a %I:%M %p>"
"Date format string for journal headings.")
(defun org-journal-entry ()
"Create a new diary entry for today or append to an existing one."
(interactive)
(switch-to-buffer (find-file org-journal-file))
(widen)
(let ((today (format-time-string org-journal-date-format)))
(beginning-of-buffer)
(unless (org-goto-local-search-headings today nil t)
((lambda ()
(org-insert-heading)
(insert today)
(insert " "))))
(beginning-of-buffer)
(org-show-entry)
(org-narrow-to-subtree)
(end-of-buffer)))
(global-set-key "\C-cj" 'org-journal-entry)
So, C-cj will open the file, create a timestamp entry at the top, and narrow to the subtree. Great for creating timestamped notes. I keep a journal this way (multiple entries per day are fine), but it could be used for any note taking.I have a git repo set up, and I run: "vim `date -I`", which opens a text file named for the current date (2020-02-08 today for example). Then I'll put in notes about what it is I'm currently working on.
I've come up with the convention of separating tasks with three equal signs (===) and separating updates to a single task with (--).
The main thing it's been helpful for to me, which is honestly probably why I've kept up with it, is that I'm bad about doing my daily timesheets. So once a month when our accounting lady gets after me, I'll go back through my notes and fill everything in.
I used just one big file right now and one thing good about it is that you can search all your notes with one command.
I also use the uuid command to tag/reference sections. Then, I can just put the cursor on the uuid and hit '*' to jump right to that spot in the file.
I guess that's basically what you wrote, but I had to play with it a bit to understand.
"======================================================
"put an entry with the date/time (for keeping plan.txt)
"======================================================
command! -nargs=* Entry call s:RunEntry()
function! s:RunEntry()
let s:tm = "\n---" . strftime("%d/%m/%y %H:%M:%S") . "----------------------\n"
execute "normal! i" . s:tm
" enter insert mode because it's time to write stuff now.
call feedkeys("i")
endfunctionThe app itself is something tightly coupled to having an account to operate (so no data is lost), but I might try adding in an interactive demo on the landing page so you get that feel of how it works straight away.
alias notes='nvim echo ~/notes/notes-$(date +'%Y%m%d').md'
The format being markdown gives a good syntax clue to vim.
I also added a vim command to push it to github while editing. These just remove barriers to opening and syncing the file, but the concept is the same.
You can see the result here: https://github.com/jodavaho/bashlog
Honestly, there's not really anything to "maintain". Just a text file and some timestamps. No magic at all. Simple as dirt. That's the magic :-)
A do see a lot of people who are making date stamped files, but I can't understand why. Do you want to switch between using C-s vs dropping to command-line for grep?
For example, to run a remote command using an inline org-mode source block:
src_sh[:dir /ssh:host:]{some command}
Or to run code using a remote Jupyter kernel within Org-mode in Emacs: #+BEGIN_SRC jupyter-julia :session /ssh:ec2:/run/user/1000/jupyter/kernel-julia-0.6.json
...
#+END_SRC
https://github.com/dzop/emacs-jupyter/blob/master/README.org...To cover the more trivial point for the non-Emacs readers: Tramp in Emacs makes it so that there's almost no difference between opening a file (C-x C-f) like this:
/home/user/some-file.txt
and like this: /ssh:some-machine:/home/user/some-file.txt
and like this, if you need superuser rights: /ssh:some-machine|sudo:some-machine:/etc/someconfig
The subsystem in Emacs called Tramp makes this almost transparent; you edit your remote files as if they were local. There are occasional kinks with path translation in corner-case situations, like local Emacs editing remote source files and trying to load them into remote REPL, but those are rare and can be configured away. Dired (directory manager in Emacs) also works transparently over Tramp, so this essentially replaces SCP and graphical SFTP tools for me. You can even run GDB remotely over Tramp, which is a nice trick.I've gotten to the point that anything important enough to keep around I basically just put in a git repo somewhere.
Logitech folio keyboard and Apple Pencil. Drawings also pushed to cloud.
Local backup to my own NAS and a S3 storage.
Works as a charm
Dropbox iOS app allows you to create .txt files if you absolutely need to take a note from your phone. I’m never far from my computer personally.
I also wrote a Chrome extension that does essentially the same thing as my bash script (as well as save bookmarks to Dropbox). Its caching mechanism is very convenient for writing long notes that will be edited over hours or days—if the machine goes down, they’re all stored in Chrome’s local memory the next time I boot.
I don't think it's a concern. And you need to make backups anyway.
What script or bash alias are you using to do your "note (maybe some text here)"? I'd love to be able to do something similar.
I separate my job journal from my personal journal. Job journal starts on a backed up work drive and I don't care to have mobile access to it. I must have access to my personal journal at work, or while I'm out and about and mobile is the only way.
[2] e.g. configure a "directory repository" with content://com.android.externalstorage.documents/tree/<device id>%3AAndroid%2Fdata%2Fcom.nutomic.syncthingandroid%2Ffiles%2FSync%2Forg
I'm running a stock Pixel 2 and I've been using syncthing to sync pictures and videos to my desktop automatically, but didn't know about Orgzly. I just hooked up Orgzly and syncthing and it worked without any issues. Thanks for commenting about orgzly!
Edit: Fixed a spelling error. Also, here's a link to the app:
Do you do that with a shell script or an elisp function? Either way, I'd be interested in taking a look at your implementation if you don't mind sharing.
I've been thinking about this approach .. but was unsure about how access from outside, or if I'm abroad even.
About 20 years ago I spent a while writing a server to do a bunch of automation and reminding and so forth, and found that I was spending more time on that thing than I was doing real work, so I ditched it, just like I did OneNote and all the other apps. There's no need to fix bugs in a text file, nor do you need to upgrade your version of Python or whatever.
Simple will survive decades with zero effort. Complicated pieces of code (especially ones that use networking or browser tech) will need to be maintained, patched, debugged and ported. Life is short. I'd rather actually be productive than have to spend time keeping some productivity app running, or worrying if the vendor of the online notes app I chose to use is going to be bought by Oracle or something.
Actually in the past I used my email account as my RSS reader. It had integrated read/non read status, mass "mark as read" as needed, was synced on all platforms I cared about without anything to install. I didn't really changed my subscriptions a lot so configuration was not complicated.
Sometimes a webmail is just a good enough UI for text-related things.
Then, just send your notes (via sms) to the email.
If you're using the wiki (using one or more wiki pages) everything is entered into the browser whether online or using the built-in server running locally. Other options are to create an issue for each note or create a new forum thread for each note. The nice thing about these options is that you get the search and querying power of an sqlite database applied to your notes for free.
Disclaimer: I haven't used this approach because I don't use mobile devices for note taking. Just pointing out that it is possible.
I just type
and it cracks open Emacs on the notes file, adds a timestamp, appends the optional text, and then I can just type or paste something in. Nearly frictionless, that's key. Great for writing those miserable annual reviews, too (easy answers to "what have I worked on in the past year?")I use plain old notebooks (simple blank sketchpads, or something bound like a Moleskin/Lecchturm) for meetings, interviews, walking around datacenters and so forth where a keyboard is awkward and anyway, drawings.
I've tried the EverNote/OneNote/etc. apps and none of them were as convenient or as easy to use, or as portable.