Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Fooling around in elixir…

Evan Travers evantravers

💭
Fooling around in elixir…
View GitHub Profile
View things_tag_shortcuts.md

Things Quick Tip: Keyboard Shortcuts for Tags

Things allows you to assign keyboard shortcuts to Tags.

  1. Bring up the tag manager with ⌘⌃T
  2. Notice the little boxes to the right? Click in one and press a key. Tada!

This adds two bindings: if you have a task highlighted and press ⌃+<key>, it'll toggle that tag on and off.

If you are looking at any view, you can press ⌃⌥+<key> and it'll filter that view to that tag.

View instapaper
#!/bin/bash
#basic newsboat bookmark plugin for instapaper
username=$(op get item "instapaper" | jq '.details.fields[] | select(.designation=="username").value' | tr -d '"')
password=$(op get item "instapaper" | jq '.details.fields[] | select(.designation=="password").value' | tr -d '"')
url="$1"
title="$2"
curl --data-urlencode "title=$title" \
View snip.applescript
-- stolen from: https://gist.github.com/gabeanzelini/1931128eb233b0da8f51a8d165b418fa
if (count of theSelectionFromBrave()) is greater than 0 then
set str to "tags: #link
" & theTitleFromBrave() & "
> " & theSelectionFromBrave() & "
[" & theTitleFromBrave() & "](" & theCurrentUrlInBrave() & ")"
View config
# general settings
auto-reload yes
max-items 500
show-read-feeds no
text-width 50
reload-threads 11
# set browser for osx
browser /usr/bin/open -a "/Applications/Brave Browser.app" '%u'
View config
# general settings
auto-reload yes
max-items 500
show-read-feeds no
text-width 50
reload-threads 11
# set browser for osx
browser /usr/bin/open -a "/Applications/Brave Browser.app" '%u'
View migrate_booknotes.rb
require 'date'
require 'uri'
require 'net/http'
require 'json'
require 'rubygems/text'
include Gem::Text
SRC = "./"
DST = "./migrated"
View migrate_links.rb
View migrate_devotionals.rb
require 'date'
SRC = "./"
DST = "./migrated"
ORGTAG = /:([a-zA-Z\-_]+)/
def render(data)
%{id: #{data[:id]}
tags: #{data[:tags]}
date: #{data[:date]}
View add_book.js
let t = `title: {{title}}{{#subtitle}}
subtitle: {{subtitle}}{{/subtitle}}
author: {{authors}}
publisher: {{publisher}}
year: {{publishedDate}}
identifier: {{identifier}}
id: {{id}}
`
let template = MustacheTemplate.createWithTemplate(t);
@evantravers
evantravers / transform_vimwiki_diary_to_simple_markdown_zettelkasten.rb
Last active Apr 4, 2020
I'm in the process of turning my vimwiki diary into a set of zettelkasten following my Simple Markdown Zettelkasten format… here's a script to migrate them.
View transform_vimwiki_diary_to_simple_markdown_zettelkasten.rb
require 'date'
SRC = "./"
DST = "./transform"
ORGTAG = /:([a-zA-Z\-_]+):/
def render(data)
%{
title: #{data[:title]}
id: #{data[:id]}