From 2befd642bc30f881ba0d6d9baf913d00bb172c36 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 5 Jan 2025 20:11:36 +0000 Subject: [PATCH 01/16] qutebrowser: add fpp/stm quickmark --- qutebrowser/quickmarks | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index aba8bc7..1b57f58 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -27,6 +27,7 @@ fpp/leads https://fppnt.atlassian.net/wiki/spaces/SGNSS/pages/2372993040/Enginee fpp/mail https://mail.google.com/ fpp/meet https://meet.google.com/landing?authuser=0 fpp/slack https://app.slack.com/client/T08SDJ1QC/ +fpp/stm https://gitlab.com/fppnt/sgnss/springfield fpp/stm/board https://gitlab.com/groups/fppnt/-/boards/7638916?label_name[]=team%3Astm-sdk fpp/stm/epics https://gitlab.com/groups/fppnt/-/epics?state=opened&page=1&sort=start_date_desc&label_name[]=team:stm-sdk fpp/stm/issues https://gitlab.com/fppnt/sgnss/springfield/-/issues -- 2.49.0 From b7989d12147f74aa0a1417a6a4097e2faaaedc61 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 5 Jan 2025 20:11:48 +0000 Subject: [PATCH 02/16] qutebrowser: add van/park4night quickmark --- qutebrowser/quickmarks | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index 1b57f58..ded749c 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -49,6 +49,7 @@ syncthing/deepthought http://deepthought.lan:8384/ syncthing/hactar http://localhost:8384/# telegram https://web.telegram.org/ van/manual https://www.fordservicecontent.com/Ford_Content/vdirsnet/OwnerManual/Home/Content?variantid=7707&languageCode=en&countryCode=USA&Uid=G1521520&ProcUid=G1467680&userMarket=GBR&div=f&vFilteringEnabled=False&buildtype=web +van/park4night https://park4night.com/en/search?lat=56.8609857506449&lng=-4.28466796875&z=7 x4/econ-depgraph https://i.imgur.com/kMzfyf6.jpeg x4/roguey https://roguey.co.uk/x4/ x4/ships https://www.qsna.eu/x4/ships/ -- 2.49.0 From 945d00ec64ecf43e7732aec3b889cc5dd5bfc7b2 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 20:45:01 +0000 Subject: [PATCH 03/16] qutebrowser: add stm/issues/my quickmark --- qutebrowser/quickmarks | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/quickmarks b/qutebrowser/quickmarks index ded749c..4983d80 100644 --- a/qutebrowser/quickmarks +++ b/qutebrowser/quickmarks @@ -31,6 +31,7 @@ fpp/stm https://gitlab.com/fppnt/sgnss/springfield fpp/stm/board https://gitlab.com/groups/fppnt/-/boards/7638916?label_name[]=team%3Astm-sdk fpp/stm/epics https://gitlab.com/groups/fppnt/-/epics?state=opened&page=1&sort=start_date_desc&label_name[]=team:stm-sdk fpp/stm/issues https://gitlab.com/fppnt/sgnss/springfield/-/issues +fpp/stm/issues/my https://gitlab.com/dashboard/issues?sort=created_date&state=opened&assignee_username[]=samir.fpp fpp/stm/issues/new https://gitlab.com/fppnt/sgnss/springfield/-/issues/new fpp/stm/mr https://gitlab.com/fppnt/sgnss/springfield/-/merge_requests gitlab-ci https://docs.gitlab.com/ee/ci/yaml/ -- 2.49.0 From 8323e8ce778e413d2cca20ea442717c78e1e0939 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 20:46:16 +0000 Subject: [PATCH 04/16] zsh: add a count of todays taskwarrior tasks to prompt --- zsh/lib/prompt.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zsh/lib/prompt.zsh b/zsh/lib/prompt.zsh index f6a8daf..3ca62a4 100644 --- a/zsh/lib/prompt.zsh +++ b/zsh/lib/prompt.zsh @@ -6,7 +6,7 @@ hostcolor=cyan [[ $(hostname) == "tardis" ]] && hostcolor=red precmd() { - PROMPT=$'%T %n@%{$fg[$hostcolor]%}%m$(jobs_prompt)%-0>..>$(git_prompt_status)%>>\n' + PROMPT=$'%T $(task_today_list)%n@%{$fg[$hostcolor]%}%m$(jobs_prompt)%-0>..>$(git_prompt_status)%>>\n' PROMPT+=$'$(virtualenv_prompt)%(?..%{$fg_bold[white]%}%?)%{$reset_color%}$(vi_prompt_info)%{%(!.$fg[red]❰.$fg[green]❱)%1G%} ' RPROMPT='%{$fg[green]%}%~%{$reset_color%}' } @@ -135,3 +135,13 @@ function print_if_fits() { length=${#${(S%%)1//$~zero/}} echo "%-$length(l.$1.)" } + +function task_today_list() { + local task_cmd=(task rc.verbose:nothing) + local task_count=$($task_cmd $($task_cmd _get rc.report.today.filter) count) + + local task_status="" + task_status+="%{$fg_bold[red]%} $task_count " + task_status+="%{$reset_color%}" + echo $task_status +} -- 2.49.0 From 7eef94f4d0aa7e44b325053e3640946e99e10639 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 22:20:18 +0000 Subject: [PATCH 05/16] nvim: remove example plugin --- nvim/lua/plugins/example.lua | 267 ----------------------------------- 1 file changed, 267 deletions(-) delete mode 100644 nvim/lua/plugins/example.lua diff --git a/nvim/lua/plugins/example.lua b/nvim/lua/plugins/example.lua deleted file mode 100644 index 39f342f..0000000 --- a/nvim/lua/plugins/example.lua +++ /dev/null @@ -1,267 +0,0 @@ --- since this is just an example spec, don't actually load anything here and return an empty spec --- stylua: ignore -if true then return {} end - --- every spec file under config.plugins will be loaded automatically by lazy.nvim --- --- In your plugin files, you can: --- * add extra plugins --- * disable/enabled LazyVim plugins --- * override the configuration of LazyVim plugins -return { - -- add gruvbox - { "ellisonleao/gruvbox.nvim" }, - - -- Configure LazyVim to load gruvbox - { - "LazyVim/LazyVim", - opts = { - colorscheme = "gruvbox", - }, - }, - - -- change trouble config - { - "folke/trouble.nvim", - -- opts will be merged with the parent spec - opts = { use_diagnostic_signs = true }, - }, - - -- disable trouble - { "folke/trouble.nvim", enabled = false }, - - -- add symbols-outline - { - "simrat39/symbols-outline.nvim", - cmd = "SymbolsOutline", - keys = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, - config = true, - }, - - -- override nvim-cmp and add cmp-emoji - { - "hrsh7th/nvim-cmp", - dependencies = { "hrsh7th/cmp-emoji" }, - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - local cmp = require("cmp") - opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } })) - end, - }, - - -- change some telescope options and a keymap to browse plugin files - { - "nvim-telescope/telescope.nvim", - keys = { - -- add a keymap to browse plugin files - -- stylua: ignore - { - "fp", - function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, - desc = "Find Plugin File", - }, - }, - -- change some options - opts = { - defaults = { - layout_strategy = "horizontal", - layout_config = { prompt_position = "top" }, - sorting_strategy = "ascending", - winblend = 0, - }, - }, - }, - - -- add telescope-fzf-native - { - "telescope.nvim", - dependencies = { - "nvim-telescope/telescope-fzf-native.nvim", - build = "make", - config = function() - require("telescope").load_extension("fzf") - end, - }, - }, - - -- add pyright to lspconfig - { - "neovim/nvim-lspconfig", - ---@class PluginLspOpts - opts = { - ---@type lspconfig.options - servers = { - -- pyright will be automatically installed with mason and loaded with lspconfig - pyright = {}, - }, - }, - }, - - -- add tsserver and setup with typescript.nvim instead of lspconfig - { - "neovim/nvim-lspconfig", - dependencies = { - "jose-elias-alvarez/typescript.nvim", - init = function() - require("lazyvim.util").on_attach(function(_, buffer) - -- stylua: ignore - vim.keymap.set( "n", "co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" }) - vim.keymap.set("n", "cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer }) - end) - end, - }, - ---@class PluginLspOpts - opts = { - ---@type lspconfig.options - servers = { - -- tsserver will be automatically installed with mason and loaded with lspconfig - tsserver = {}, - }, - -- you can do any additional lsp server setup here - -- return true if you don't want this server to be setup with lspconfig - ---@type table - setup = { - -- example to setup with typescript.nvim - tsserver = function(_, opts) - require("typescript").setup({ server = opts }) - return true - end, - -- Specify * to use this function as a fallback for any server - -- ["*"] = function(server, opts) end, - }, - }, - }, - - -- for typescript, LazyVim also includes extra specs to properly setup lspconfig, - -- treesitter, mason and typescript.nvim. So instead of the above, you can use: - { import = "lazyvim.plugins.extras.lang.typescript" }, - - -- add more treesitter parsers - { - "nvim-treesitter/nvim-treesitter", - opts = { - ensure_installed = { - "bash", - "help", - "html", - "javascript", - "json", - "lua", - "markdown", - "markdown_inline", - "python", - "query", - "regex", - "tsx", - "typescript", - "vim", - "yaml", - }, - }, - }, - - -- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above - -- would overwrite `ensure_installed` with the new value. - -- If you'd rather extend the default config, use the code below instead: - { - "nvim-treesitter/nvim-treesitter", - opts = function(_, opts) - -- add tsx and treesitter - vim.list_extend(opts.ensure_installed, { - "tsx", - "typescript", - }) - end, - }, - - -- the opts function can also be used to change the default opts: - { - "nvim-lualine/lualine.nvim", - event = "VeryLazy", - opts = function(_, opts) - table.insert(opts.sections.lualine_x, "😄") - end, - }, - - -- or you can return new options to override all the defaults - { - "nvim-lualine/lualine.nvim", - event = "VeryLazy", - opts = function() - return { - --[[add your custom lualine config here]] - } - end, - }, - - -- use mini.starter instead of alpha - { import = "lazyvim.plugins.extras.ui.mini-starter" }, - - -- add jsonls and schemastore ans setup treesitter for json, json5 and jsonc - { import = "lazyvim.plugins.extras.lang.json" }, - - -- add any tools you want to have installed below - { - "williamboman/mason.nvim", - opts = { - ensure_installed = { - "stylua", - "shellcheck", - "shfmt", - "flake8", - }, - }, - }, - - -- Use for completion and snippets (supertab) - -- first: disable default and behavior in LuaSnip - { - "L3MON4D3/LuaSnip", - keys = function() - return {} - end, - }, - -- then: setup supertab in cmp - { - "hrsh7th/nvim-cmp", - dependencies = { - "hrsh7th/cmp-emoji", - }, - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - local has_words_before = function() - unpack = unpack or table.unpack - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end - - local luasnip = require("luasnip") - local cmp = require("cmp") - - opts.mapping = vim.tbl_extend("force", opts.mapping, { - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - -- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable() - -- they way you will only jump inside the snippet region - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }) - end, - }, -} -- 2.49.0 From 0756953840bf661bca89873c8666831e25adae2a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 22:34:14 +0000 Subject: [PATCH 06/16] nvim: use ruff for python lsp ruff_lsp seems to be deprecated. --- nvim/lua/plugins/lang/python.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/plugins/lang/python.lua b/nvim/lua/plugins/lang/python.lua index 480d567..899bfb3 100644 --- a/nvim/lua/plugins/lang/python.lua +++ b/nvim/lua/plugins/lang/python.lua @@ -13,7 +13,7 @@ return { ---@type lspconfig.options servers = { pyright = {}, - ruff_lsp = { + ruff = { root_dir = function(fname) return require("lspconfig.util").root_pattern("pyproject.toml", "setup.cfg", "ruff.toml")(fname) end, -- 2.49.0 From cea7018943384d1332ede7f73d8d091f79f9706a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 22:35:35 +0000 Subject: [PATCH 07/16] nvim: force telescope as lazyvim picker The new snacks picker overrides my fugitive and fold maps and does not seem to allow to override them. I also don't like change. --- nvim/lua/config/options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index 5fce922..d0ef34b 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -22,3 +22,5 @@ if vim.fn.has("nvim-0.9.0") == 1 then end -- do not let markdown plugin change indent vim.g.markdown_recommended_style = 0 + +vim.g.lazyvim_picker = "telescope" -- 2.49.0 From e173809be5f033ce92e16e2969509e4e57d127b4 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 22:42:09 +0000 Subject: [PATCH 08/16] nvim: use Snacks.toggle instead of lazyvim.util.toggle The latter is depracated. --- nvim/lua/config/keymaps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/config/keymaps.lua b/nvim/lua/config/keymaps.lua index 1e71154..fc3ba2f 100644 --- a/nvim/lua/config/keymaps.lua +++ b/nvim/lua/config/keymaps.lua @@ -76,9 +76,9 @@ vim.keymap.set("n", "[w", diagnostic_goto(false, "WARN"), { desc = "Prev Warning -- toggle options vim.keymap.set("n", "uf", Util.format.toggle, { desc = "Toggle format on Save" }) -vim.keymap.set("n", "ud", Util.toggle.diagnostics, { desc = "Toggle Diagnostics" }) +vim.keymap.set("n", "ud", Snacks.toggle.diagnostics, { desc = "Toggle Diagnostics" }) local conceallevel = vim.o.conceallevel > 0 and vim.o.conceallevel or 3 -vim.keymap.set("n", "uc", function() Util.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" }) +vim.keymap.set("n", "uc", function() Snacks.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" }) -- highlights under cursor if vim.fn.has("nvim-0.9.0") == 1 then -- 2.49.0 From fe358daaa866d155d69996e3c9b36a23d934d365 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 27 Jan 2025 22:43:51 +0000 Subject: [PATCH 09/16] nvim: remove nvim-cmp from neorg completion It has been removed in favour of blink in LazyVim. I will have to investigate whether I will keep this change. --- nvim/lua/plugins/productivity.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nvim/lua/plugins/productivity.lua b/nvim/lua/plugins/productivity.lua index e646806..8b91501 100644 --- a/nvim/lua/plugins/productivity.lua +++ b/nvim/lua/plugins/productivity.lua @@ -105,11 +105,6 @@ SCHEDULED: %t dependencies = { "nvim-lua/plenary.nvim", "luarocks.nvim", - { "nvim-cmp", - opts = function(_, opts) - table.insert(opts.sources, { name = "neorg" }) - end, - }, }, opts = { load = { @@ -136,11 +131,6 @@ SCHEDULED: %t end, }, }, - ["core.completion"] = { - config = { - engine = "nvim-cmp", - } - }, ["core.summary"] = { config = { strategy = "by_path", -- 2.49.0 From 50879ba093b3600fe397d64863d44f8995c53bcb Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 2 Feb 2025 22:52:37 +0000 Subject: [PATCH 10/16] task: add custom recurrence stuff (wip) --- task/taskrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/task/taskrc b/task/taskrc index 0760883..89610b7 100644 --- a/task/taskrc +++ b/task/taskrc @@ -67,6 +67,28 @@ urgency.inherit = yes urgency.blocked.coefficient = 0.0 urgency.blocking.coefficient = 4.0 +# Custom recurrence +recurrence=no +report.recurring.labels = ID,Active,Age,D,P,Parent,Project,Tags,Recur,RType,RSch,RWait,Due,Until,Description,Urg +report.recurring.columns = id,start.age,entry.age,depends.indicator,priority,parent.short,project,tags,recur,rtype,rscheduled,rwait,due,until.remaining,description,urgency +report.recurring.filter = status:recurring +# NOTE: my patched version of task already provides this as a rw property +#uda.rtype.label=Recur.Type +#uda.rtype.type=string +#uda.rtype.values=chained,periodic +uda.r.label=TwRecurrence +uda.r.type=string +uda.rparent.label=Parent task +uda.rparent.type=string +uda.rwait.label=Wait (instance) +uda.rwait.type=date +uda.runtil.label=Until WIP (instance) +uda.runtil.type=date +uda.rscheduled.label=Scheduled (instance) +uda.rscheduled.type=date +uda.rlastinstance.label=Last child task +uda.rlastinstance.type=string + # taskd taskd.certificate=$XDG_DATA_HOME/task/hactar.cert.pem taskd.key=$XDG_DATA_HOME/task/hactar.key.pem -- 2.49.0 From 19d0e8785afe70f5b360c7689e0ef08a5cc21bac Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 2 Feb 2025 23:48:11 +0000 Subject: [PATCH 11/16] nvim: don't animate scrolling --- nvim/lua/config/options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/lua/config/options.lua b/nvim/lua/config/options.lua index d0ef34b..cd18d69 100644 --- a/nvim/lua/config/options.lua +++ b/nvim/lua/config/options.lua @@ -24,3 +24,5 @@ end vim.g.markdown_recommended_style = 0 vim.g.lazyvim_picker = "telescope" + +vim.g.snacks_animate = false -- 2.49.0 From c39bafbfcb6c7a3ebf122b1305b2eafbe3399e70 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 14:12:29 +0000 Subject: [PATCH 12/16] bin: add cmk --- bin/cmk | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/cmk diff --git a/bin/cmk b/bin/cmk new file mode 100755 index 0000000..e425e54 --- /dev/null +++ b/bin/cmk @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +BUILD_TYPE=${BUILD_TYPE:-Debug} +BUILDDIR=${BUILDDIR:-build-$(uname -s)-$(uname -m)-$BUILD_TYPE} +CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON" + +if [[ ! -f $BUILDDIR/Makefile ]]; then + cmake -S . -B $BUILDDIR ${CMAKE_ARGS} +fi + +make -C $BUILDDIR "$@" -- 2.49.0 From f4d02bb2db5caa013ac40d5cff82caa89144d596 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 14:13:09 +0000 Subject: [PATCH 13/16] bin: add mediainfo.py script to simplify ranger previews --- bin/hoogle | 0 bin/mediainfo.py | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 bin/hoogle create mode 100755 bin/mediainfo.py diff --git a/bin/hoogle b/bin/hoogle new file mode 100644 index 0000000..e69de29 diff --git a/bin/mediainfo.py b/bin/mediainfo.py new file mode 100755 index 0000000..c043d90 --- /dev/null +++ b/bin/mediainfo.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 + +from pymediainfo import MediaInfo +from sys import argv +from pprint import pp + +media_info = MediaInfo.parse(argv[1]) +if isinstance(media_info ,str): + exit(0) # not possible but helps linter + +pp(media_info.to_data()) + +for t in media_info.tracks: + if t.track_type == "General": + print(f"Name: {t.complete_name}") + if t.track_type == "Video": + print(f"Bit rate: {t.bit_rate}") -- 2.49.0 From f8e57889739708dadd071417e79efd3985cef4e0 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 14:19:28 +0000 Subject: [PATCH 14/16] bin: add notes to monzo qif --- bin/monzo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/monzo.py b/bin/monzo.py index 6980487..1335007 100755 --- a/bin/monzo.py +++ b/bin/monzo.py @@ -56,6 +56,8 @@ if __name__ == "__main__": memo += "\n{local_amount} {local_currency}".format(**t) notes = t["notes"] + if notes: + memo += "\nNotes: {notes}".format(**t) if outformat == "csv": print('{date:%Y-%m-%d},{amount},"{payee}","{description}","{notes}"'.format(date=date, payee=payee, -- 2.49.0 From a1a20381142e28149e14300d729903fd17cef00c Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 14:19:54 +0000 Subject: [PATCH 15/16] bin: differentiate between personal and joint account payees --- bin/starling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/starling.py b/bin/starling.py index 7f46150..ed745ee 100755 --- a/bin/starling.py +++ b/bin/starling.py @@ -19,6 +19,8 @@ def read_feed_item(i): if i["direction"] == "OUT": amount = -amount payee = i["counterPartyName"] + if "counterPartySubEntityName" in i: + payee += " ({})".format(i["counterPartySubEntityName"]) reference = i.get("reference", payee) if outformat == "csv": print('{date:%Y-%m-%d},{amount},"{payee}","{description}","{notes}"'.format(date=date, -- 2.49.0 From 8a83c91bf3cc5773bacc12c802e24d30e7dd58d8 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 9 Feb 2025 14:23:16 +0000 Subject: [PATCH 16/16] zsh: add todo to recursively check for task aliases in task-quote-magic --- zsh/functions/task-quote-magic | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/functions/task-quote-magic b/zsh/functions/task-quote-magic index 197fb37..415c7d1 100644 --- a/zsh/functions/task-quote-magic +++ b/zsh/functions/task-quote-magic @@ -28,6 +28,7 @@ local -a reply match mbegin mend zstyle -m ':task-quote-magic:\*' task-seps '*' || zstyle -e ':task-quote-magic:*' task-seps 'reply=("#{}\`\"&<>''${histchars[1]}")' +# TODO: recursively check if cmd is an alias of an alias of task zstyle -m ':task-quote-magic' task-cmds '*' || zstyle -e ':task-quote-magic' task-cmds \ 'zmodload -i zsh/parameter; -- 2.49.0