TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Memo Life for You

55 pointsby adulauabout 7 years ago

6 comments

nmcaabout 7 years ago
In my .bashrc:<p># Logbook<p>function lb() { vim ~&#x2F;Dropbox&#x2F;logbooks&#x2F;$(date &#x27;+%d-%m-%Y&#x27;).md }
评论 #17065884 未加载
nameless912about 7 years ago
In my .zshrc:<p><pre><code> # Summary: run `note &lt;title&gt;` to make a new note # run `notes` to get a fuzzy finder (if available) to view all notes function note() { NOTE_DIR=~&#x2F;Dropbox&#x2F;notes mkdir -p $NOTE_DIR || true NOTE_NAME=&quot;$1&quot; if [[ -z $NOTE_NAME ]]; then NOTE_NAME=&quot;$(date +%Y-%m-%d)&quot; else NOTE_NAME=&quot;$(date +%Y-%m-%d)-$NOTE_NAME&quot; fi vim $NOTE_DIR&#x2F;$NOTE_NAME.txt } function notes() { NOTE_DIR=~&#x2F;Dropbox&#x2F;notes mkdir -p $NOTE_DIR || true pushd $NOTE_DIR &gt; &#x2F;dev&#x2F;null # Use the fuzzy finder if available if command_exists fzf; then # Only open the selection if one was actually chosen NOTEFILE=$(find * -type f -maxdepth 0 | fzf) if [[ -n $NOTEFILE ]]; then vim $NOTEFILE fi else vim . fi popd &gt; &#x2F;dev&#x2F;null } </code></pre> I dump my notes in my Dropbox folder so that I get sync for free. And fzf makes finding notes super easy.
donquichotteabout 7 years ago
Sweet! BTW, this was made by mattn of go-sqlite3 fame.<p>I had never heard of &quot;peco&quot; before, the self-describe &quot;simplistic interactive filtering tool&quot; that is called if you run <i>$memo edit</i>. Looks pretty handy!
52-6F-62about 7 years ago
Ease of use points for sure (I could use something like this), but why does it need HTTP calls? Sincere question— my Monday morning brain can&#x27;t grasp it.
评论 #17065161 未加载
yositoabout 7 years ago
What are the advantages of this over something like the following?<p><pre><code> mkdir memos &amp;&amp; cd memos vim some-memo.md</code></pre>
评论 #17071044 未加载
la_ovejaabout 7 years ago
this and syncthing could become a nice duo