diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..688266d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.3.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: detect-private-key + - id: end-of-file-fixer + - id: trailing-whitespace + + - repo: https://github.com/executablebooks/mdformat + rev: 0.7.16 + hooks: + - id: mdformat + additional_dependencies: + - mdformat-toc + - mdformat-gfm + - mdformat-black diff --git a/README.md b/README.md index 652bb9f..7914697 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![mc-onedark](https://raw.githubusercontent.com/DeadNews/mc-onedark/main/preview/Screenshot_20201219_204641.png) -# Theme variants +## Theme variants The mc OneDark theme comes in two flavors, an 8/16 color option (`onedark.ini`) and a 16M color option (`onedark16M.ini`). The 8/16 color version is entirely dependent on having installed the relevant OneDark theme for your terminal too as it uses the color palette fixed by your terminal. @@ -10,22 +10,33 @@ See [Konsole](https://store.kde.org/p/1225908/) color scheme for example. The 16M color version can be used independently of any terminal color scheme, but requires true color support in the terminal. -# Installation +## Installation -Copy files from `./skins` to `~/.local/share/mc/skins` \ -Copy files from `./config` to `~/.config/mc/` (optional) +- Copy files from `./skins` to `~/.local/share/mc/skins` +- Copy files from `./config` to `~/.config/mc/` (optional) +## Activating ways -# Activating theme +- Choose the skin through the mc UI with: -Option 1: edit `~/.config/mc/ini` and add `skin=onedark`: \ -`sed -i 's|\(^skin=\).*$|\1onedark|' ~/.config/mc/ini` +```sh +# F9 > Options > Appearance +``` -Option 2: choose the skin through the mc UI with: \ -`F9 > Options > Appearance` +- Edit `~/.config/mc/ini` and add `skin=onedark`: -Option 3: run mc with specific skin: \ -`mc -S onedark` +```sh +sed -i 's|\(^skin=\).*$|\1onedark|' ~/.config/mc/ini +``` -Option 4: add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`): \ -`echo "export MC_SKIN=onedark" >> ~/.zshrc` \ No newline at end of file +- Run mc with specific skin: + +```sh +mc -S onedark +``` + +- Add `export MC_SKIN=onedark` to the initialization file of your shell (e.g., `~/.bashrc` or `~/.zshrc`): + +```sh +echo "export MC_SKIN=onedark" >> ~/.zshrc +``` diff --git a/config/filehighlight.ini b/config/filehighlight.ini index f6642f2..d3b0391 100644 --- a/config/filehighlight.ini +++ b/config/filehighlight.ini @@ -47,4 +47,3 @@ [config] extensions=ini;conf - diff --git a/skins/onedark.ini b/skins/onedark.ini index acf4f6e..0e50c6a 100644 --- a/skins/onedark.ini +++ b/skins/onedark.ini @@ -65,7 +65,7 @@ core = red; temp = gray; archive = magenta; - doc = + doc = source = brightcyan; media = green; graph = cyan;