czyykj.com

Enhancing Your Obsidian Experience: Mobile Capture Techniques

Written on

Chapter 1: Introduction to Mobile Note Capture

In my previous post, I explored the iOS shortcuts I currently utilize to capture information into my Obsidian vault effectively.

Today, I will introduce an additional shortcut: Changing Daily Note fields.

Customizing Daily Notes in Obsidian

My Daily Note Structure

Below is a glimpse of my Daily Note setup:

Daily Note Overview

I aimed to simplify the process of modifying specific fields without needing to access Obsidian directly on my mobile device.

Daily Note Fields for Quick Edits

To begin, installing the Actions for Obsidian app is essential. This application introduces valuable shortcut actions for use with Obsidian.

Actions for Obsidian App Overview

This app effectively integrates the personal knowledge management tool Obsidian with Apple's automation capabilities.

Code Walkthrough

Now, let’s examine the code:

Initially, I check whether the Daily Note exists. If it doesn’t, I create one. Notably, leaving the Note body field empty in the Create Daily Note action will utilize the template set in your daily notes plugin, which, in my instance, is Periodic Notes.

Following that, I present a menu for selecting which field to update.

Field Selection Menu

For the location, I provide another menu to select from predefined options:

Location Selection Options

I then prepend "Location::" to the chosen value and store it in a variable named Location. This step is repeated for all location options.

Next, I employ an action to search the current daily note using the regex "Location:: (.*)", which captures "Location::" followed by any text, and replaces it with the value in the Location variable.

Regex Replacement Action for Location

For other fields, I prompt the user for input, prepend the field name, and store it in a variable. Finally, the action searches the current daily note for the regex "field_name:: (.*)" and substitutes it with the relevant variable's content.

Field Value Replacement Action

After executing this for each menu option, I open the daily note with the following action:

Daily Note Opening Action

Share the page:

Twitter Facebook Reddit LinkIn

-----------------------

Recent Post:

Mastering Your Home Sale Journey: A Personal Success Story

Discover how to take control of your home sale through personal empowerment and strategic planning.

Maximizing Your Side Hustle: Key Insights for Success

Explore effective strategies for evaluating and launching a side hustle, featuring real-life examples and practical tips.

Understanding C++ STL: The Functionality of Container Adapters

An overview of C++ STL container adapters stack, queue, and priority_queue, including source code analysis and performance testing.

Discovering Practical Self-Love: A Journey to Acceptance

Explore the transformative journey of self-love through practical steps and emotional understanding.

Title: Embracing Humanity: Beyond Weakness and Excuses

This piece explores the importance of taking responsibility for our actions and embracing our humanity rather than using it as an excuse for failure.

Exploring the Power of Adopting New Personas for Creativity

Discover how embracing different personas can enhance creativity and understanding in social settings.

# Navigating the Challenges of Kids and Conspiracy Theories

Explore the alarming rise of conspiracy theories among kids and effective strategies to combat disinformation.

Embracing Simplicity: How to Overcome Burnout and Boost Productivity

Discover how focusing on fewer tasks can enhance productivity and reduce burnout.