Add blog post obsidian git sync on ios

This commit is contained in:
c47 2023-12-10 12:48:34 +01:00
parent 18a983c7ce
commit 7a0e011f23
29 changed files with 1551 additions and 63 deletions

View file

@ -172,6 +172,11 @@ fuehle ich mich besser.</p>
<li><a href="https://www.nixre.net/tags/sexuality/">sexuality</a></li>
</ul>
<nav class="paginav">
<a class="prev" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/">
<span class="title">« Next Page</span>
<br>
<span>Obsidian git sync on iOS</span>
</a>
<a class="next" href="https://www.nixre.net/blog/hafermilch/">
<span class="title">Prev Page »</span>
<br>

View file

@ -116,6 +116,19 @@
</div>
<article class="post-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
@ -171,20 +184,6 @@ function! LastMod() if expand(&#39;%:p:h&#39;) =~ &#39;path/to/my/hugo-website/w
<footer class="entry-footer"><span title='2022-05-01 10:28:34 +0200 CEST'>[ Published: 2022/05/01 10:28 ]</span>&nbsp;·&nbsp;<span class='lastmod'>[ Last edit: 2022/05/29 07:37 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Update Lastmod Using Vim" href="https://www.nixre.net/blog/update-lastmod-using-vim/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/veraenderungen/" title="Link to post">Veraenderungen</a>
</h2>
</header>
<section class="entry-content">
<p>Menschen und ihre Persoenlichkeiten sind nicht statisch. Wir veraendern uns im Laufe unserer Leben. Mehr oder weniger, aber wir alle tun das. Wir durchlaufen unterschiedliche Arten und Level von Veraenderungen. Auch unsere Sexualitaet kann sich veraendern. So kann es passieren, dass ein Aspekt unserer Sexualitaet, der frueher vielleicht nur zart schimmerte, irgendwann viel praesenter ist - vielleicht macht dieser Aspekt nun unsere Sexualitaet ploetzlich vordergruendig aus.
Andere Aspekte hingegen koennen ihre Wichtigkeit oder ihren Reiz verlieren - oder beides....</p>
</section>
<footer class="entry-footer"><span title='2022-04-29 16:00:12 +0200 CEST'>[ Published: 2022/04/29 16:00 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Veraenderungen" href="https://www.nixre.net/blog/veraenderungen/"></a>
</article>
<footer class="page-footer">
<nav class="pagination">
<a class="next" href="https://www.nixre.net/blog/page/2/">Next Page »</a>

View file

@ -7,6 +7,60 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sun, 17 Apr 2022 10:17:21 +0200</lastBuildDate><atom:link href="https://www.nixre.net/blog/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
<item>
<title>Ace - Eine Schnitzeljagd</title>
<link>https://www.nixre.net/blog/ace-eine-schnitzeljagd/</link>

View file

@ -0,0 +1,270 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>Obsidian git sync on iOS | nixre.net</title>
<meta name="keywords" content="git, ios, notes, note taking, obsidian, synchronisation, working copy">
<meta name="description" content="I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is note taking. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
<script defer crossorigin="anonymous" src="/assets/js/highlight.min.b95bacdc39e37a332a9f883b1e78be4abc1fdca2bc1f2641f55e3cd3dabd4d61.js" integrity="sha256-uVus3DnjejMqn4g7Hni&#43;Srwf3KK8HyZB9V4809q9TWE="
onload="hljs.initHighlightingOnLoad();"></script>
<link rel="icon" href="https://www.nixre.net/favicon32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.nixre.net/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.nixre.net/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://www.nixre.net/apple-touch-icon.png">
<link rel="mask-icon" href="https://www.nixre.net/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript><meta property="og:title" content="Obsidian git sync on iOS" />
<meta property="og:description" content="I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is note taking. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" /><meta property="article:section" content="blog" />
<meta property="article:published_time" content="2023-12-09T09:25:37&#43;01:00" />
<meta property="article:modified_time" content="2023-12-09T09:25:37&#43;01:00" />
</head>
<body class=" dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://www.nixre.net" accesskey="h" title="nixre.net [H]">nixre.net</a>
<span class="logo-switches">
<button id="theme-toggle" accesskey="t" title="[T]">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</span>
</div>
<ul id="menu">
<li>
<a href="https://www.nixre.net/blog/" title="Blog">
<span>Blog</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/tags/" title="Tags">
<span>Tags</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/series/" title="Series">
<span>Series</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/about/" title="About">
<span>About</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/index.xml" title="RSS">
<span>RSS</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<article class="post-single">
<header class="post-header">
<h1 class="post-title">
Obsidian git sync on iOS
</h1>
<div class="post-meta"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47
</div>
</header>
<div class="post-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
</div>
<footer class="post-footer">
<ul class="post-tags">
<li><a href="https://www.nixre.net/tags/git/">git</a></li>
<li><a href="https://www.nixre.net/tags/gtd/">gtd</a></li>
<li><a href="https://www.nixre.net/tags/ios/">ios</a></li>
<li><a href="https://www.nixre.net/tags/notes/">notes</a></li>
<li><a href="https://www.nixre.net/tags/tech/">tech</a></li>
</ul>
<nav class="paginav">
<a class="next" href="https://www.nixre.net/blog/ace-eine-schnitzeljagd/">
<span class="title">Prev Page »</span>
<br>
<span>Ace - Eine Schnitzeljagd</span>
</a>
</nav>
</footer>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="https://www.nixre.net">nixre.net</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
</span>
<span>
<a href="/impressum/">Impressum</a>
</span>
<span>
<a href="/privacy/">Privacy statement</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -116,6 +116,20 @@
</div>
<article class="post-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/veraenderungen/" title="Link to post">Veraenderungen</a>
</h2>
</header>
<section class="entry-content">
<p>Menschen und ihre Persoenlichkeiten sind nicht statisch. Wir veraendern uns im Laufe unserer Leben. Mehr oder weniger, aber wir alle tun das. Wir durchlaufen unterschiedliche Arten und Level von Veraenderungen. Auch unsere Sexualitaet kann sich veraendern. So kann es passieren, dass ein Aspekt unserer Sexualitaet, der frueher vielleicht nur zart schimmerte, irgendwann viel praesenter ist - vielleicht macht dieser Aspekt nun unsere Sexualitaet ploetzlich vordergruendig aus.
Andere Aspekte hingegen koennen ihre Wichtigkeit oder ihren Reiz verlieren - oder beides....</p>
</section>
<footer class="entry-footer"><span title='2022-04-29 16:00:12 +0200 CEST'>[ Published: 2022/04/29 16:00 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Veraenderungen" href="https://www.nixre.net/blog/veraenderungen/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>

View file

@ -117,7 +117,7 @@
<a href="https://www.nixre.net/categories/general/">general <sup><strong><sup>3</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/categories/tech/">tech <sup><strong><sup>4</sup></strong></sup> </a>
<a href="https://www.nixre.net/categories/tech/">tech <sup><strong><sup>5</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/categories/thoughts/">thoughts <sup><strong><sup>2</sup></strong></sup> </a>

View file

@ -8,21 +8,21 @@
<language>en</language>
<lastBuildDate>Sun, 17 Apr 2022 10:17:21 +0200</lastBuildDate><atom:link href="https://www.nixre.net/categories/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>thoughts</title>
<link>https://www.nixre.net/categories/thoughts/</link>
<pubDate>Sun, 11 Sep 2022 07:25:42 +0200</pubDate>
<title>tech</title>
<link>https://www.nixre.net/categories/tech/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/categories/thoughts/</guid>
<guid>https://www.nixre.net/categories/tech/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>tech</title>
<link>https://www.nixre.net/categories/tech/</link>
<pubDate>Sat, 27 Aug 2022 23:36:12 +0200</pubDate>
<title>thoughts</title>
<link>https://www.nixre.net/categories/thoughts/</link>
<pubDate>Sun, 11 Sep 2022 07:25:42 +0200</pubDate>
<guid>https://www.nixre.net/categories/tech/</guid>
<guid>https://www.nixre.net/categories/thoughts/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>

View file

@ -9,8 +9,8 @@
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2022-08-27 23:36:12 &#43;0200 CEST">
<meta name="dcterms.modified" content="2023-09-16 08:51:48 &#43;0200 CEST">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/categories/tech/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
@ -112,6 +112,19 @@
<h1>tech</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>

View file

@ -6,7 +6,61 @@
<description>Recent content in tech on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sat, 27 Aug 2022 23:36:12 +0200</lastBuildDate><atom:link href="https://www.nixre.net/categories/tech/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/categories/tech/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
<item>
<title>Omemo</title>
<link>https://www.nixre.net/omemo/</link>

View file

@ -7,6 +7,60 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sun, 17 Apr 2022 11:27:10 +0200</lastBuildDate><atom:link href="https://www.nixre.net/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
<item>
<title>Ace - Eine Schnitzeljagd</title>
<link>https://www.nixre.net/blog/ace-eine-schnitzeljagd/</link>

View file

@ -2,6 +2,27 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://www.nixre.net/tags/git/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/gtd/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/ios/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/notes/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/tech/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/categories/tech/</loc>
<lastmod>2023-12-09T09:25:37+01:00</lastmod>
</url><url>
<loc>https://www.nixre.net/blog/ace-eine-schnitzeljagd/</loc>
<lastmod>2022-09-11T16:50:59+02:00</lastmod>
</url><url>
@ -34,9 +55,6 @@
</url><url>
<loc>https://www.nixre.net/omemo/</loc>
<lastmod>2023-09-16T08:51:48+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/categories/tech/</loc>
<lastmod>2023-09-16T08:51:48+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/xmpp/</loc>
<lastmod>2023-09-16T08:51:48+02:00</lastmod>
@ -70,9 +88,6 @@
</url><url>
<loc>https://www.nixre.net/series/</loc>
<lastmod>2022-05-27T22:32:48+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/tech/</loc>
<lastmod>2022-05-29T07:37:29+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/vim/</loc>
<lastmod>2022-05-29T07:37:29+02:00</lastmod>
@ -112,9 +127,6 @@
</url><url>
<loc>https://www.nixre.net/blog/calendars/</loc>
<lastmod>2022-01-29T09:53:49+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/gtd/</loc>
<lastmod>2022-01-29T09:53:49+02:00</lastmod>
</url><url>
<loc>https://www.nixre.net/tags/opinion/</loc>
<lastmod>2022-01-29T09:53:49+02:00</lastmod>

205
tags/git/index.html Normal file
View file

@ -0,0 +1,205 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>git | nixre.net</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/tags/git/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://www.nixre.net/favicon32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.nixre.net/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.nixre.net/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://www.nixre.net/apple-touch-icon.png">
<link rel="mask-icon" href="https://www.nixre.net/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="https://www.nixre.net/tags/git/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript><meta property="og:title" content="git" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.nixre.net/tags/git/" />
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://www.nixre.net" accesskey="h" title="nixre.net [H]">nixre.net</a>
<span class="logo-switches">
<button id="theme-toggle" accesskey="t" title="[T]">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</span>
</div>
<ul id="menu">
<li>
<a href="https://www.nixre.net/blog/" title="Blog">
<span>Blog</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/tags/" title="Tags">
<span>Tags</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/series/" title="Series">
<span>Series</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/about/" title="About">
<span>About</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/index.xml" title="RSS">
<span>RSS</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>git</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="https://www.nixre.net">nixre.net</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
</span>
<span>
<a href="/impressum/">Impressum</a>
</span>
<span>
<a href="/privacy/">Privacy statement</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

65
tags/git/index.xml Normal file
View file

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>git on nixre.net</title>
<link>https://www.nixre.net/tags/git/</link>
<description>Recent content in git on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/tags/git/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
</channel>
</rss>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>https://www.nixre.net/tags/git/</title>
<link rel="canonical" href="https://www.nixre.net/tags/git/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=https://www.nixre.net/tags/git/">
</head>
</html>

View file

@ -9,8 +9,8 @@
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2022-01-29 09:53:49 &#43;0200 &#43;0200">
<meta name="dcterms.modified" content="2022-01-29 09:53:49 &#43;0200 &#43;0200">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/tags/gtd/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
@ -112,6 +112,19 @@
<h1>gtd</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>

View file

@ -6,7 +6,61 @@
<description>Recent content in gtd on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sat, 29 Jan 2022 09:53:49 +0200</lastBuildDate><atom:link href="https://www.nixre.net/tags/gtd/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/tags/gtd/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
<item>
<title>Calendars</title>
<link>https://www.nixre.net/blog/calendars/</link>

View file

@ -137,21 +137,30 @@
<li>
<a href="https://www.nixre.net/tags/food/">food <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/git/">git <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/glutenfrei/">glutenfrei <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/gtd/">gtd <sup><strong><sup>1</sup></strong></sup> </a>
<a href="https://www.nixre.net/tags/gtd/">gtd <sup><strong><sup>2</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/identity/">identity <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/ios/">ios <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/jabber/">jabber <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/neovim/">neovim <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/notes/">notes <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/omemo/">omemo <sup><strong><sup>1</sup></strong></sup> </a>
</li>
@ -177,7 +186,7 @@
<a href="https://www.nixre.net/tags/small-web/">small-web <sup><strong><sup>1</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/tech/">tech <sup><strong><sup>3</sup></strong></sup> </a>
<a href="https://www.nixre.net/tags/tech/">tech <sup><strong><sup>4</sup></strong></sup> </a>
</li>
<li>
<a href="https://www.nixre.net/tags/vegan/">vegan <sup><strong><sup>1</sup></strong></sup> </a>

View file

@ -7,6 +7,56 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sun, 17 Apr 2022 10:16:50 +0200</lastBuildDate><atom:link href="https://www.nixre.net/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>git</title>
<link>https://www.nixre.net/tags/git/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/tags/git/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>gtd</title>
<link>https://www.nixre.net/tags/gtd/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/tags/gtd/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>ios</title>
<link>https://www.nixre.net/tags/ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/tags/ios/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>notes</title>
<link>https://www.nixre.net/tags/notes/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/tags/notes/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>tech</title>
<link>https://www.nixre.net/tags/tech/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/tags/tech/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>personality</title>
<link>https://www.nixre.net/tags/personality/</link>
@ -157,16 +207,6 @@
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>tech</title>
<link>https://www.nixre.net/tags/tech/</link>
<pubDate>Sun, 22 May 2022 07:42:11 +0200</pubDate>
<guid>https://www.nixre.net/tags/tech/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>vim</title>
<link>https://www.nixre.net/tags/vim/</link>
@ -207,16 +247,6 @@
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>gtd</title>
<link>https://www.nixre.net/tags/gtd/</link>
<pubDate>Sat, 29 Jan 2022 09:53:49 +0200</pubDate>
<guid>https://www.nixre.net/tags/gtd/</guid>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
</item>
<item>
<title>opinion</title>
<link>https://www.nixre.net/tags/opinion/</link>

205
tags/ios/index.html Normal file
View file

@ -0,0 +1,205 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>ios | nixre.net</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/tags/ios/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://www.nixre.net/favicon32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.nixre.net/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.nixre.net/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://www.nixre.net/apple-touch-icon.png">
<link rel="mask-icon" href="https://www.nixre.net/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="https://www.nixre.net/tags/ios/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript><meta property="og:title" content="ios" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.nixre.net/tags/ios/" />
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://www.nixre.net" accesskey="h" title="nixre.net [H]">nixre.net</a>
<span class="logo-switches">
<button id="theme-toggle" accesskey="t" title="[T]">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</span>
</div>
<ul id="menu">
<li>
<a href="https://www.nixre.net/blog/" title="Blog">
<span>Blog</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/tags/" title="Tags">
<span>Tags</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/series/" title="Series">
<span>Series</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/about/" title="About">
<span>About</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/index.xml" title="RSS">
<span>RSS</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>ios</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="https://www.nixre.net">nixre.net</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
</span>
<span>
<a href="/impressum/">Impressum</a>
</span>
<span>
<a href="/privacy/">Privacy statement</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

65
tags/ios/index.xml Normal file
View file

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>ios on nixre.net</title>
<link>https://www.nixre.net/tags/ios/</link>
<description>Recent content in ios on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/tags/ios/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
</channel>
</rss>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>https://www.nixre.net/tags/ios/</title>
<link rel="canonical" href="https://www.nixre.net/tags/ios/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=https://www.nixre.net/tags/ios/">
</head>
</html>

205
tags/notes/index.html Normal file
View file

@ -0,0 +1,205 @@
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>notes | nixre.net</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/tags/notes/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://www.nixre.net/favicon32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://www.nixre.net/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://www.nixre.net/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://www.nixre.net/apple-touch-icon.png">
<link rel="mask-icon" href="https://www.nixre.net/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="https://www.nixre.net/tags/notes/index.xml">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
</noscript><meta property="og:title" content="notes" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.nixre.net/tags/notes/" />
</head>
<body class="list dark" id="top">
<script>
if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://www.nixre.net" accesskey="h" title="nixre.net [H]">nixre.net</a>
<span class="logo-switches">
<button id="theme-toggle" accesskey="t" title="[T]">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</span>
</div>
<ul id="menu">
<li>
<a href="https://www.nixre.net/blog/" title="Blog">
<span>Blog</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/tags/" title="Tags">
<span>Tags</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/series/" title="Series">
<span>Series</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/about/" title="About">
<span>About</span>
</a>
</li>
<li>
<a href="https://www.nixre.net/index.xml" title="RSS">
<span>RSS</span>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<header class="page-header">
<h1>notes</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
</main>
<footer class="footer">
<span>&copy; 2023 <a href="https://www.nixre.net">nixre.net</a></span>
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a>
</span>
<span>
<a href="/impressum/">Impressum</a>
</span>
<span>
<a href="/privacy/">Privacy statement</a>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>

65
tags/notes/index.xml Normal file
View file

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>notes on nixre.net</title>
<link>https://www.nixre.net/tags/notes/</link>
<description>Recent content in notes on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/tags/notes/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
</channel>
</rss>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>https://www.nixre.net/tags/notes/</title>
<link rel="canonical" href="https://www.nixre.net/tags/notes/">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=https://www.nixre.net/tags/notes/">
</head>
</html>

View file

@ -9,8 +9,8 @@
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="author" content="c47">
<meta name="dcterms.created" content="2022-05-22 07:42:11 &#43;0200 CEST">
<meta name="dcterms.modified" content="2022-05-29 07:37:29 &#43;0200 CEST">
<meta name="dcterms.created" content="2023-12-09 09:25:37 &#43;0100 CET">
<meta name="dcterms.modified" content="2023-12-09 09:25:37 &#43;0100 CET">
<link rel="canonical" href="https://www.nixre.net/tags/tech/">
<link rel="stylesheet" type="text/css" href="/fonts/fork-awesome/css/fork-awesome.min.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.min.7d25f03e0f43b051535479bf4b3521ec6a6201c7250312bac58ebb4e3b4cf284.css" integrity="sha256-fSXwPg9DsFFTVHm/SzUh7GpiAcclAxK6xY67TjtM8oQ=" rel="preload stylesheet" as="style">
@ -112,6 +112,19 @@
<h1>tech</h1>
</header>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>
<a href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/" title="Link to post">Obsidian git sync on iOS</a>
</h2>
</header>
<section class="entry-content">
<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing thats quite important to me is note taking. Im not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task....</p>
</section>
<footer class="entry-footer"><span title='2023-12-09 09:25:37 +0100 CET'>[ Published: 2023/12/09 09:25 ]</span>&nbsp;·&nbsp;c47</footer>
<a class="entry-link" aria-label="post link to Obsidian git sync on iOS" href="https://www.nixre.net/blog/obsidian-git-sync-on-ios/"></a>
</article>
<article class="post-entry tag-entry">
<header class="entry-header">
<h2>

View file

@ -6,7 +6,61 @@
<description>Recent content in tech on nixre.net</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Sun, 22 May 2022 07:42:11 +0200</lastBuildDate><atom:link href="https://www.nixre.net/tags/tech/index.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Sat, 09 Dec 2023 09:25:37 +0100</lastBuildDate><atom:link href="https://www.nixre.net/tags/tech/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Obsidian git sync on iOS</title>
<link>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</link>
<pubDate>Sat, 09 Dec 2023 09:25:37 +0100</pubDate>
<guid>https://www.nixre.net/blog/obsidian-git-sync-on-ios/</guid>
<description>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&amp;rsquo;s quite important to me is note taking. I&amp;rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task.</description>
<content:encoded><![CDATA[<p>I have got an iPhone a while ago and (of course) things are a little bit different compared to android devices. On an iPhone the ability to access data of an app from another app is not necessarily given and one thing that&rsquo;s quite important to me is <em>note taking</em>. I&rsquo;m not a person who takes tons of notes (yet), but note taking becomes more and more important to me. Of course there are tons of different ways and apps for this task. Obsidian is one of those apps and it is very popular. To be honest I started with <a href="https://anytype.io" target="_blank">anytype</a>
which I like a lot in many ways, but for multiple reasons I decided to try out obsidian instead and it turned out it fits much better.</p>
<p>Obsidian stores its data in so called <em>vaults</em> wich can be understood as containers or namespaces. They&rsquo;re represented as a folder in the file system and the data itself is stored in markdown files. The configuration is stored in .json files inside a hidden folder in the root of each vault, which is <em>.obsidian</em> by default. I mention this because this will be relevant a little bit later.</p>
<p>I work a lot on desktop computers and laptops and I would like to keep my obsidian clients synchronized over multiple devices. But for me note taking is also important to have on mobile devices, because I may need my notes when my phone is the only computer I have access to. There are quite a few ways to synchronize obisidian&rsquo;s data. The sync with iCloud is not really an option for me. Obsidian sync is another option, but I prefer to store my data on my servers if possible. Somebody in my fedivers bubble mentioned <em>obsidian-livesync</em> a few days ago, which is based on a coucheDB server. Great, but just another DB-server for synchronizing markdown files? There are many tutorials out there about synchronization with git and I like git a lot. I tried out a few ways with several apps, but I won&rsquo;t go into detail about those ways that didn&rsquo;t work, but rather describe what works for me.</p>
<p>The app I use as git client is <a href="https://workingcopy.app/" target="_blank">Working Copy</a>
and I chose this one, because it provides a way to link a repository to the data directory of another app on my iPhone. In the screenshots that follow you will see that the setup is already done, so I don&rsquo;t start a new/fresh one for this post and now I just give a short overview of the steps:</p>
<ul>
<li>Create a new vault in your obsidian on iOS<br>
(only in special cases <strong>not</strong> necessary)</li>
<li>Set the config folder of the vault</li>
<li>Create a new git repository</li>
<li>Clone the git repository using working copy</li>
<li>Link the repository to your Obsidian folder</li>
<li>Add content and synchronize it</li>
</ul>
<p>So first&hellip; when you don&rsquo;t have a vault yet, or when you have one with a default config folder (which is .obsidian)&hellip; you have to create a new vault. In case of existing vaults you can later copy all the contents, but you need a vault that a different config folder set from the beginning.<br>
After you created your new vault enter it, open the sidebar on the left and tap the gear symbol right next to its name on top to open the settings menu. Tap &ldquo;<em>About</em>&rdquo; scroll down until you find the entry &ldquo;<em>Advanced</em>&rdquo; and below that you should find &ldquo;<em>Override config folder</em>&rdquo; with an input field. Here you can enter a name that you like and that&rsquo;s different from <em>.obsidian</em>. I for example used <em>.obsidian.mobile</em>. You have to relaunch obsidian afterwards.</p>
<p>If you have not already done so create a fresh git repo now on a git server of your choice. Also if you haven&rsquo;t done already configure you <em>Working Copy</em> app so that you can access the repository and clone the fresh repo onto your device.</p>
<figure>
<img loading="lazy" src="working-copy01.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In the overview of the repositories in my <em>Working Copy</em> there are two repositories and the the top one is the one for my obsidian vault. Tap yours to open it.</p>
<figure>
<img loading="lazy" src="working-copy02.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>In this screenshot is already data shown in the repository on the left in the <em>sidebar</em>, which should not be the case when you start with a fresh one, but the relevant part of this screenshot is the part in the in the <em>main section</em> on top. There you should see at least a part of the name of the repo with a little <em>arrow</em> symbol next to it. Tap it to open a drop-down menu and search for the <em>Link repository to</em> entry. Tap it as well to open then the next nesting level of the menu.</p>
<figure>
<img loading="lazy" src="working-copy03.png"
alt="Screenshot of working copy&#39;s repository overview" width="auto"/> <figcaption>
Screenshot of working copy&#39;s repository overview
</figcaption>
</figure>
<p>Below the <em>Link repository to</em> should be an entry called <em>Directory</em> - tap it. Now a file browser should open - navigate to &ldquo;<em>On my iPhone</em> and there to the Obsidian folder that contains your vaults. I decided to just link to a single vault and not to sync all my other vaults - so mark the vault you would like to link to and tap &ldquo;<em>Open</em>&rdquo; in the top right corner. Now the files should already appear there&hellip; in this case the standard <em>.obsidian</em> folder and the new config folder <em>.obsidian.mobile</em>.</p>
<p>At this point you can add content to your vault and each time you think you have state that you think is worth synchronizing just open your Working Copy app, commit and push. The configs of your mobile client are now stored in the <em>.obsidian.mobile</em> folder. This is important when you want to synchronize between a desktop client and mobile client, because a desktop client might have features that aren&rsquo;t available in mobile clients and thus it could interfere your mobile client to access settings coing from there.</p>
<p>That&rsquo;s it. Happy synching.</p>
]]></content:encoded>
</item>
<item>
<title>n(eo)vim</title>
<link>https://www.nixre.net/blog/vim2nvim/</link>