Compare commits

..

No commits in common. "72eda6a992a6327dac7a83fb10d6d345831d3be6" and "18ce017b8a59e5d91011a4903681f52dd58117ef" have entirely different histories.

7 changed files with 35 additions and 74 deletions

View file

@ -11,19 +11,12 @@ if require("core.util").is_available("zk") and require("zk.util").notebook_root(
map("n", "<CR>", "<cmd>lua vim.lsp.buf.definition()<cr>", { silent = true }) map("n", "<CR>", "<cmd>lua vim.lsp.buf.definition()<cr>", { silent = true })
end end
if require("core.util").is_available("mdeval") then -- execute code cells
-- execute code cells if vim.fn.mapcheck("<localleader>cc") == "" then
if vim.fn.mapcheck("<localleader>cc") == "" then map("n", "<localleader>cc", require("mdeval").eval_code_block, { silent = true, desc = "evaluate code block" })
map("n", "<localleader>cc", require("mdeval").eval_code_block, { silent = true, desc = "evaluate code block" }) end
end if vim.fn.mapcheck("<localleader>cx") == "" then
if vim.fn.mapcheck("<localleader>cx") == "" then map("n", "<localleader>cx", require("mdeval").eval_clean_results, { silent = true, desc = "clear code results" })
map(
"n",
"<localleader>cx",
require("mdeval").eval_clean_results,
{ silent = true, desc = "clear code results" }
)
end
end end
-- jump to beginning of previous/ next cell code -- jump to beginning of previous/ next cell code

View file

@ -65,22 +65,10 @@ default_services = [
), ),
Service(source=["quora.com"], target=["quetre"]), Service(source=["quora.com"], target=["quetre"]),
Service(source=["google.com"], target=["whoogle"]), Service(source=["google.com"], target=["whoogle"]),
Service(source=["genius.com"], target=["dumb"]),
Service(source=["translate.google.com"], target=["lingva", "simplytranslate"]), Service(source=["translate.google.com"], target=["lingva", "simplytranslate"]),
Service(source=["deepl.com"], target=["simplytranslate"]), Service(source=["deepl.com"], target=["simplytranslate"]),
Service(source=["bandcamp.com"], target=["tent"]), Service(source=["bandcamp.com"], target=["tent"]),
Service(
custom_targets=True,
source=["genius.com"],
target=[
"dumb.privacydev.net",
"dumb.privacydev.net",
"dm.vern.cc",
"sing.whatever.social",
"dumb.nunosempere.com",
"dumb.lunar.icu",
"dumb.esmailelbob.xyz",
],
),
Service( Service(
custom_targets=True, custom_targets=True,
source=["pinterest.com"], source=["pinterest.com"],

View file

@ -6,7 +6,7 @@
" Specific directories " Specific directories
set classify+=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::/, set classify+=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::/,
\  ::.git/::/, \  ::.git/::/,
\  ::.config/::/, \  ::.config/,,Makefile::/,
\  ::Desktop/::/, \  ::Desktop/::/,
\  ::Documents/::/, \  ::Documents/::/,
\  ::Development/::/, \  ::Development/::/,
@ -24,7 +24,7 @@ set classify+=' :dir:/, :exe:, :reg:, :link:,? :?:, ::../::
\  ::node_modules/::/' \  ::node_modules/::/'
" Specific files " Specific files
set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,Makefile::, set classify+=' ::.Xdefaults,,.Xresources,,.bashprofile,,.bash_profile,,.bashrc,,.dmrc,,.d_store,,.fasd,,.gitconfig,,.gitignore,,.jack-settings,,.mime.types,,.nvidia-settings-rc,,.pam_environment,,.profile,,.recently-used,,.selected_editor,,.xinitpurc,,.zprofile,,.yarnc,,.snclirc,,.tmux.conf,,.urlview,,.config,,.ini,,.user-dirs.dirs,,.mimeapps.list,,.offlineimaprc,,.msmtprc,,.Xauthority,,config::/,
\  ::favicon.*,,README,,readme::, \  ::favicon.*,,README,,readme::,
\  ::.vim,,.vimrc,,.gvimrc,,.vifm::, \  ::.vim,,.vimrc,,.gvimrc,,.vifm::,
\  ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::, \  ::gruntfile.coffee,,gruntfile.js,,gruntfile.ls::,
@ -45,7 +45,7 @@ set classify+='λ ::*.ml,,*.mli::,
\  ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::, \  ::*.bmp,,*.gif,,*.ico,,*.jpeg,,*.jpg,,*.png,,*.svg,,*.svgz,,*.tga,,*.tiff,,*.xmb,,*.xcf,,*.xpm,,*.xspf,,*.xwd,,*.cr2,,*.dng,,*.3fr,,*.ari,,*.arw,,*.bay,,*.crw,,*.cr3,,*.cap,,*.data,,*.dcs,,*.dcr,,*.drf,,*.eip,,*.erf,,*.fff,,*.gpr,,*.iiq,,*.k25,,*.kdc,,*.mdc,,*.mef,,*.mos,,*.mrw,,*.obm,,*.orf,,*.pef,,*.ptx,,*.pxn,,*.r3d,,*.raf,,*.raw,,*.rwl,,*.rw2,,*.rwz,,*.sr2,,*.srf,,*.srw,,*.tif,,*.x3f,,*.webp,,*.avif,,*.jxl::,
\  ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::, \  ::*.ejs,,*.htm,,*.html,,*.slim,,*.xml::,
\  ::*.mustasche::, \  ::*.mustasche::,
\  ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.yaml,,*.cfg::, \  ::*.css,,*.less,,*.bat,,*.conf,,*.ini,,*.rc,,*.yml,,*.cfg::,
\  ::*.rss::, \  ::*.rss::,
\  ::*.coffee::, \  ::*.coffee::,
\  ::*.twig::, \  ::*.twig::,

View file

@ -9,10 +9,9 @@ key = "73BA40D5AFAF49C9"
[git] [git]
sign-on-push = true sign-on-push = true
subprocess = true subprocess = true
private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')" # refuse to push WIP commits private-commits = "description(glob:'wip:*') | description(glob:'private:*')" # refuse to push WIP commits
[ui] [ui]
default-command = "log"
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"] diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
pager = "delta" pager = "delta"
@ -40,4 +39,3 @@ log = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | tru
"downstream(x,y)" = "(x::y) & y" "downstream(x,y)" = "(x::y) & y"
"branches" = "downstream(trunk(), bookmarks()) & mine()" "branches" = "downstream(trunk(), bookmarks()) & mine()"
"curbranch" = "latest(branches::@- & branches)" "curbranch" = "latest(branches::@- & branches)"
"githead" = "::git_head()"

View file

@ -14,17 +14,20 @@ alias jds="jj describe"
alias jc="jj commit" alias jc="jj commit"
# finding out the current snapshot # finding out the current snapshot
alias js="jj status" js() {
if [ "$#" -eq 0 ]; then
jj status
else
jj show "$*"
fi
}
alias jw="jj show" alias jw="jj show"
alias jd="jj diff" alias jd="jj diff"
# for describe-and-edit workflows # for describe-and-edit workflows
# https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-edit-workflow.html # https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-edit-workflow.html
alias je="jj edit" alias je="jj edit"
alias jen="jj next --edit" alias jee="jj next --edit"
alias jep="jj prev --edit"
alias jenn="jj next"
alias jepp="jj prev"
# for squash-and-go workflows # for squash-and-go workflows
# https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-squash-workflow.html # https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-squash-workflow.html
@ -33,19 +36,16 @@ alias jsi="jj squash --interactive"
# oops buttons # oops buttons
alias ju="jj undo" alias ju="jj undo"
# allows you to split the current change into multiple # for damn,-forgot-to-split-this-commit workflow
alias ji="jj split" # Creates a new commit before with your selected changes, lets you describe it and carry on
# quickly get rid of a change alias ji="jj new -B@ --no-edit && jj squash --interactive && jj edit '@-' && jj describe && jj edit '@+'"
alias jab="jj abandon"
# revset info # revset info
alias J="jj log -r 'all()'" # mirror default command being log
alias jl="jj log -T builtin_log_oneline" alias jl="jj log -T builtin_log_oneline"
alias JL="jj log -T builtin_log_oneline -r 'all()'" alias jL="jj log -r 'all()'"
alias jlo="jj log --summary" alias jlo="jj log --summary"
alias JLO="jj log --summary -r 'all()'" alias jLO="jj log --summary -r 'all()'"
alias jloo="jj log --patch" alias jloo="jj log --patch"
alias JLOO="jj log --patch -r 'all()'"
alias jol="jj op log" alias jol="jj op log"
jlf() { jlf() {
jj log -r "description($*)" jj log -r "description($*)"
@ -64,9 +64,7 @@ alias jrb="jj rebase"
# 'branching' bookmark work # 'branching' bookmark work
alias jb="jj bookmark" alias jb="jj bookmark"
jbm() { alias jbm="jj bookmark set main"
jj bookmark set -r "${1:-@}" main
}
# remote work # remote work
alias jrv="jj git remote list" alias jrv="jj git remote list"

View file

@ -11,7 +11,7 @@ highlight: true
indent_character: '|' indent_character: '|'
journals: journals:
default: default:
journal: ~/documents/notes/journal/jrnl.md journal: ~/documents/records/jrnl.md
linewrap: 79 linewrap: 79
tagsymbols: + tagsymbols: +
template: false template: false

View file

@ -1,35 +1,19 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# #
_zk_wiki() {
zk --notebook-dir="$WIKIROOT" "$@"
}
n() { n() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
_zk_wiki edit -i zk edit -i
else else
_zk_wiki "${@}" zk "${@}"
fi fi
} }
# We have a local wiki # open notes with my vim zettelkasten plugin
if [ -n "${WIKIROOT}" ]; then # TODO better implementation conditional on zk.nvim & zettelkasten existing
# open notes with my vim zettelkasten plugin # nvim +'lua pcall(require "zk.commands"') --headless +qa 2>&1 or similar to check - but slow
# TODO better implementation conditional on zk.nvim & zettelkasten existing if command -v nvim >/dev/null 2>&1; then
# nvim +'lua pcall(require "zk.commands"') --headless +qa 2>&1 or similar to check - but slow alias ni='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit $WIKIROOT/index.md"'
if command -v nvim >/dev/null 2>&1; then
alias ni='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit $WIKIROOT/index.md"'
fi
alias ncd='cd $WIKIROOT'
nn() { # 'new note'
_zk_wiki new "$@"
}
nnl() { # 'new note log'
_zk_wiki log "$@"
}
nnd() { # 'new note draft'
_zk_wiki draft "$@"
}
fi fi
alias ncd='pushd $WIKIROOT'