<?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>DEV Community: Yoan Malié</title>
    <description>The latest articles on DEV Community by Yoan Malié (@yoanmalie).</description>
    <link>https://dev.to/yoanmalie</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%2F166323%2Faed48209-bf3e-40c5-9ed5-d9ee92fca835.png</url>
      <title>DEV Community: Yoan Malié</title>
      <link>https://dev.to/yoanmalie</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yoanmalie"/>
    <language>en</language>
    <item>
      <title>Don't use the br + br selector to hide the superfluous carriage return.</title>
      <dc:creator>Yoan Malié</dc:creator>
      <pubDate>Tue, 10 Sep 2019 10:26:32 +0000</pubDate>
      <link>https://dev.to/yoanmalie/don-t-use-the-br-br-selector-to-hide-the-superfluous-carriage-return-3nb3</link>
      <guid>https://dev.to/yoanmalie/don-t-use-the-br-br-selector-to-hide-the-superfluous-carriage-return-3nb3</guid>
      <description>&lt;p&gt;You probably see some advice on the web and especially on Twitter about this selector:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;br&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nt"&gt;br&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Theorically, you want to hide the superfluous &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; elements that are sometime added by a text editor in a CMS when you hit Enter. This selector seem pretty neat! &lt;a href="https://twitter.com/csswizardry/status/1170835532584235008" rel="noopener noreferrer"&gt;This Tweet from Harry Robert&lt;/a&gt; who got a lot of Retweets and Likes, mention this tip.&lt;/p&gt;

&lt;p&gt;But do you know what is really happening…?&lt;/p&gt;

&lt;p&gt;Let's give a look on &lt;a href="https://codepen.io/yoanm/pen/ZEzrwre" rel="noopener noreferrer"&gt;this Pen I made&lt;/a&gt;. It's a simple text with some carriage returns added on it. You will notice that I added two siblings &lt;code&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/code&gt; tag and this is the second one that we want to hide with this selector!&lt;/p&gt;

&lt;p&gt;The fact is that the &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; tag is part of the text DOM, you will see that all the &lt;code&gt;&amp;lt;br&amp;gt;&lt;/code&gt; tag except the first will be hiden. This will completely interfere with the reading by showing us some big parts of unreadable text.&lt;/p&gt;

&lt;p&gt;I'm curious if you know others tips to get rid of bad outputs from CMS. Let me know!&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Get the best out of the Macbook Touchbar with iTerm2.</title>
      <dc:creator>Yoan Malié</dc:creator>
      <pubDate>Tue, 25 Jun 2019 21:09:50 +0000</pubDate>
      <link>https://dev.to/yoanmalie/get-the-best-out-of-the-macbook-touchbar-with-iterm2-1001</link>
      <guid>https://dev.to/yoanmalie/get-the-best-out-of-the-macbook-touchbar-with-iterm2-1001</guid>
      <description>&lt;p&gt;The Touchbar on the Macbook is great. I use it because it's give me useful shortcuts on some apps and I can configure it depending of the application.&lt;/p&gt;

&lt;p&gt;We hope that one day we will be able to make a full custom Touchbar with our own buttons, easily. But unfortunally I don't think this feature is planned (Keep on hoping 🤞).&lt;/p&gt;

&lt;p&gt;So for this article, let see what we can do in iTerm2 for a better experience with the Touchbar.&lt;/p&gt;

&lt;p&gt;At first, I was just trying to make simple shortcuts buttons to launch Git or NPM commands.&lt;br&gt;
So in &lt;code&gt;iTerm2&lt;/code&gt; &amp;gt; &lt;code&gt;Preferences…&lt;/code&gt; &amp;gt; &lt;code&gt;Keys&lt;/code&gt;, there a button on the bottom right for &lt;code&gt;Add Touch Bar Item&lt;/code&gt;. This will open a little popup.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F10t8a5jbamuxnrmmt6hq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F10t8a5jbamuxnrmmt6hq.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enter the label you want for the button in the Touchbar, you can add an emoji with ⌘ Command + ^ Control + Space.&lt;br&gt;
For the action, scroll down and select the "Send text" option.&lt;br&gt;
You can now type your command, you have to add a trailing &lt;code&gt;\n&lt;/code&gt; to tell iTerm to go back to a new line after sending the command, this will avoid some weird look with your theme.&lt;br&gt;
For a simple &lt;code&gt;git status&lt;/code&gt;, the action would be &lt;code&gt;git status\n&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Repeat this step to create as many buttons as you want.&lt;/p&gt;

&lt;p&gt;Now, we need to add them to the Touchbar, just go to &lt;code&gt;View&lt;/code&gt; &amp;gt; &lt;code&gt;Customize Touch Bar&lt;/code&gt; and drag and drop the buttons into the Touchbar.&lt;br&gt;
You maybe need to quit and reload iTerm if you don't see them yet.&lt;/p&gt;

&lt;p&gt;And there it is!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fd4hv68vytzt2zp934ce2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fd4hv68vytzt2zp934ce2.png" alt="The Touchbar with 3 custom buttons ready for Git status, npm install and Composer install"&gt;&lt;/a&gt;&lt;br&gt;
It's cool right 😎? &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
