Skip to content

Instantly share code, notes, and snippets.

@lellimecnar
Created October 4, 2018 17:36
Show Gist options
  • Save lellimecnar/224875b0e4c17cf4bd112bcdfb42ef8f to your computer and use it in GitHub Desktop.
Save lellimecnar/224875b0e4c17cf4bd112bcdfb42ef8f to your computer and use it in GitHub Desktop.
Atom config
<span style="display:block;position:absolute;top:-2px;left:22px"><%
var dirname = path.dirname(relativeFilePath).split(path.sep).join('/');
if (dirname.startsWith('ui-src/public/') || dirname.startsWith('app/templates/twig/')) {
var dirs = dirname.replace('ui-src/public/', '').replace('app/templates/twig/', '').split('/');
%><strong><%= dirs.shift() %></strong><%= path.sep %><%= dirs.join(path.sep) %><%
} else {
if (dirname.startsWith('..')) {
dirname = path.dirname(filePath).replace(process.env.HOME, '~');
}
%><%= dirname %><%
} %></span>
<em style="display:block;position:absolute;bottom:-5px;left:12px;font-size:0.85em">
<%= fileName %>
</em>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment