<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Thassio Victor</title>
    <description>The latest articles on Forem by Thassio Victor (@thassio__).</description>
    <link>https://forem.com/thassio__</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F8645%2F93a27454-85f0-42d4-bd35-f40bd6154420.jpeg</url>
      <title>Forem: Thassio Victor</title>
      <link>https://forem.com/thassio__</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/thassio__"/>
    <language>en</language>
    <item>
      <title>Thing that doesn't scale but I do it anyway</title>
      <dc:creator>Thassio Victor</dc:creator>
      <pubDate>Tue, 25 Jun 2019 03:10:59 +0000</pubDate>
      <link>https://forem.com/thassio__/thing-that-doesn-t-scale-but-i-do-it-anyway-g2o</link>
      <guid>https://forem.com/thassio__/thing-that-doesn-t-scale-but-i-do-it-anyway-g2o</guid>
      <description>&lt;p&gt;&lt;a href="https://getlifeyoudesire.com/20-bullet-journal-hacks/"&gt;Journaling&lt;/a&gt;. Tried a lot. I used all sorts of open source projects, Android apps, built my own scripts in Javascript, then Python, then Go, with all the&lt;br&gt;
nice things that &lt;a href="https://imgur.com/gallery/aXPas"&gt;the little voices told me to do&lt;/a&gt;, like "sync with that&lt;br&gt;
service", "use that database", "you can make things more decoupled this way", etc. All of it worked. How many entries my journal(s) had? &lt;strong&gt;None&lt;/strong&gt;. I essentially built things that became trash as soon as they appeared in the file.&lt;/p&gt;

&lt;p&gt;This works, though:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
nvim + +put_ +'r!date' +put_ +startinsert /my/home/my/file.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can translate this command as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;go to the end of the file, &lt;/li&gt;
&lt;li&gt;new line, &lt;/li&gt;
&lt;li&gt;add the current date, &lt;/li&gt;
&lt;li&gt;new line, &lt;/li&gt;
&lt;li&gt;leave the editor in insert mode. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Put it in a file, called it &lt;code&gt;tj&lt;/code&gt;, gave it a little &lt;code&gt;chmod +x&lt;/code&gt; sauce, and now my thoughts are stored nicely in a file. And I actually use it, almost everyday. &lt;code&gt;nvim&lt;/code&gt; is for &lt;a href="https://neovim.io/"&gt;neovim&lt;/a&gt;, btw.&lt;/p&gt;

&lt;p&gt;With time, the &lt;code&gt;file.md&lt;/code&gt; becomes something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Mon 24 Jun 2019 11:23:34 PM -03
this is the first

Mon 24 Jun 2019 11:26:45 PM -03
now the second

Mon 24 Jun 2019 11:26:56 PM -03
you get the idea
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Bonus - a fancy "popup" in i3-gaps
&lt;/h2&gt;

&lt;p&gt;I use &lt;a href="https://github.com/Airblader/i3"&gt;&lt;code&gt;i3-gaps&lt;/code&gt;&lt;/a&gt; and wanted to make things "more interesting", so I added two&lt;br&gt;
lines in my &lt;code&gt;~/.i3/config&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for_window [class="^floatingVim$"] floating enable
bindsym $mod+q exec "termite -e tj --class floatingVim"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when I press &lt;code&gt;Super+q&lt;/code&gt; a new &lt;a href="https://github.com/thestinger/termite"&gt;&lt;code&gt;termite&lt;/code&gt;&lt;/a&gt; window is launched as a floating&lt;br&gt;
little square in the middle of my screen with &lt;code&gt;tj&lt;/code&gt; ready for me to write&lt;br&gt;
something.&lt;/p&gt;

</description>
      <category>cool</category>
      <category>little</category>
      <category>trick</category>
      <category>devjournal</category>
    </item>
  </channel>
</rss>
