Tech Habits: Obsidian Live Preview, Vi Focus Mode, & Alarms for Calendar Events

Geet Duggal
5 min readSep 7, 2024

--

Creating my own shiny new apps by piecing together existing tools.

I find that I often collect tidbits of tech tips and tricks that don’t warrant a more in-depth writing treatment, but would like to share nonetheless. I’ll therefore occasionally group together these thoughts and share as a part of a series that I call ‘Tech Habits’. Hope it is interesting and useful and look forward to learning more from you all. ☕️

I recently wrote a somewhat longer piece of text describing a lens through which I view productivity tools called ‘Weather Resistant Productivity’ 🏔️:

This post will cover three ‘tech habits’ that exemplify how some of my tried-and-true tools can be used in new and weather resistant ways.

Harnessing the power of Obsidian Live Preview Mode

Obsidian is neither the first nor the only editor to attempt to deliver a ‘what you see is what you get’ experience for editing Markdown (eg. Typora, Mark Text, StackEdit). Obsidian with Live Preview Mode, however, is certainly the best in my experience. It is perfect for viewing images & other media, editing plain text, editing tables, and harnessing the power of the occasional plugin to enhance the whole experience.

I don’t like to clutter my vault with too many plugins, but here are a few essentials that I think work well with Live Preview Mode while keeping my setup weather resistant:

  • Advanced Tables. Not only is it easy to edit tables in live preview mode, but the output in plain text also looks nice and clean and easy to edit in other editors when you like. See the animation here to see how it reformats your text to look pretty. (Note that I do not like to use this plugin for formulas etc. as I think it’s a bit clunky.)
  • Paste Image Rename. As a part of my weather resistant setup, I want the convenience of being able to paste or use the iOS share sheet to quickly store and view media in my vault in a simple and portable way. At the moment, that means prefixing all file names for media stored in my ‘Attachments/’ directory with a timestamp, something like: ‘20240612081039.Image-Name.png’. This plugin is useful so I can name my files in a way that is also consistent with the way I use iOS shortcuts to quickly capture media.
  • Image Gallery. Possibly the most motivating and useful way to review my ‘me feed’ is to see images that I have captured via the methods above in a nice masonry layout. Sorting my files by descending name acheives this goal in a beautiful way right in my markdown file. With live preview mode on, it is pretty much no effort to get this view.
```img-gallery
path: Log/Attachments
type: horizontal
sort: desc
sortby: name
```

Creating a minimalist focus mode for writing in Vi

(with no plugins and a minimal modification to your config)

While I love apps like iA Writer and Live Preview Mode as described above, there is no better way for me to focus on code or text than with Vi in a terminal for me. I have, however, found it a bit unsatisfying to write longer pieces of text.

I try to avoid plugins when possible, though there are some out there (eg. see vim-iawriter). Mainly, I like to generally use this simple vimrc in any environment and expand on it only for more high-intensity coding setups. After a bit of trial-and-error, I found the following command very simple and elegant to write longer sections of text:

function! Write()
set foldcolumn=8
set columns=100
set linebreak
endfunction
command! Write call Write()

Simply type in ‘:Write’ to get a view like what you see below (if you combine it with my color scheme settings in the vimrc above):

Screenshot of my full screen terminal and Vi optimized the way I like it for writing.

Embracing the iOS native alarms and calendar experience

In another longer piece, I wrote that I find that alarms tend to work well for events or tasks that really need to get done. These are events that I generally call ‘sacred’:

By ‘alarm’, I mean the native alarm on my phone and / or watch bugging me until I eg. pump the tires on all our bikes every Wednesday night, or check the fridge for needed groceries every Thursday evening.

I have not been impressed with the UX of Apple’s native alarms and went on a bit of an expedition to see if another app will scratch that itch. I will spare you the details and summarize my experience with these two points:

  1. The ‘Due’ app is probably the most polished alarm alternative, but it comes at a cost, and I don’t prefer it over the native iOS experience. As described in the article above, I like to use calendars directly and want calendar events tied to them.
  2. Todoist now has a calendar view that syncs with Google calendar. This excited me at first because I absolutely adore Todoist’s approach to thoughtful and minimal design. I also use Google Calendar as the cloud that backs all of my calendars. However, Todoist does not support creating an event in a calendar and having it turn into a task with reminders. Furthermore, Todoist reminders aren’t ‘pesty’ like alarms in the sense that alarms keep bugging me until I actually finish what needs to get done.

I therefore have converged on the following straightforward iOS shortcut which is surprisingly useful. Coupled with an Automation that run every time I navigate away from my Calendar app on my phone, this workflow essentially clears out all the cluttered alarms on my iOS device and, crucially, uses my Calendar as the source of truth for one-off and recurring alarms. I can’t emphasize that last point enough. I finally have converged on a simple way for my calendar encode all of my alarms (and not accumulate a bunch of old alarms in the process).

Some brief final thoughts:

  • I ressurrected a personal home page recently. It’s meant to be just for my own satisfaction. I’ll probably write more about home pages in depth at some point. See this particularly fun New Yorker piece called ‘The Revenge of the Home Page’ for a tasty treatment.
  • The third installment of my Bullet Journaling experience (links for: 1 and 2) is coming hopefully soon!
  • I’m increasingly enjoying Apple native apps for Mail and Calendar (both backed by Google) for the most seamless experience.
  • I’m loving the Moleskine Volant Pocket Journal for its rugged, ‘tear and share’ experience.
  • Check out Ellane’s recent post. It helps to shed some light on the pros and cons of a more traditional ‘iOS Reminders’ app for tasks vs an interesting two-month stint with a plain text approach.

‘Till next time! 🏙️

--

--

Geet Duggal

Providing simple tips on how to use tech and productivity tools to streamline your setup and workflow for maximal enjoyment and creativity.