Skip to content

Instantly share code, notes, and snippets.

@vii33
vii33 / obsidian-vii-callouts.css
Created April 1, 2022 23:44
Obsidian Notes - Change callout color and icon (admonitions)
/* Settings for all callouts / admonitions: */
.callout {
background-color: hsl(220, 16%, 16%);
}
/* Settings for individual callouts / admonitions: */
.callout[data-callout="important"] { /* same name as in callout to be changed */
--callout-color: 19, 203, 232; /* rgb only */
@vii33
vii33 / .obsidian.vimrc
Created December 23, 2023 17:20
Obsidian .vimrc Base Template
" Use in Obsidian.md to remap Vim keybindings. More info: https://github.com/vii33/Obsidian-vimrc
" Available CodeMirror operators/motions: https://github.com/replit/codemirror-vim/blob/master/src/vim.js
" Available internal Obsidian commands, go to developer console, click in the editor, type :obcommand and check log output
" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Big J/K jumps multiple lines (compared to their smaller siblings j/k)
@vii33
vii33 / obsidian-vii-adjustable-readable-line-length.css
Last active March 8, 2024 09:50
Changes the readable line length in Obsidian Notes. Tested in Obsidian v1.0.0
/* Changes the readable line length in Obsidian Notes. Tested in Obsidian v1.0.0
See https://gist.github.com/vii33/f2c3a85b64023cefa9df6420730c7531/f4ea845b240e94c9fcd47d456340f78208dab38f
*/
body {
--file-line-width: 750px;
}