Skip to content

Instantly share code, notes, and snippets.

View simion's full-sized avatar

Simion simion

  • DontPayFull
  • Bucharest, Romania
View GitHub Profile
@jakewtaylor
jakewtaylor / readme.md
Last active January 6, 2024 23:29
VS Code CSS addition to increase readability on file tree.

Increases indentation on the file tree and adds some lines to each directory/file.

Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:

  • add another box shadow
    • (n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
  • add another padding-left
    • .monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
  • add another :before & :after with left positioning
    • .monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
  • .monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }
@simion
simion / post-merge
Last active August 29, 2015 14:13
Git hook that watches for a specific file being changed (when merging). It gives a red warning when changes are detected.
#!/bin/bash
set -eu
# place the content of this file in .git/hooks/post-merge and make it executable
# change the following variable acording to your needs.
# You can set either a file path, or a folder path (in this case, all files in that folder are being watched)
watch_path=pydpf/settings