From ce8c40e7170b9336a7dc8bf44ff669015ca57ec4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 1 Dec 2025 09:59:42 +0100 Subject: [PATCH 1/3] nvim: Fix diagnostic toggle mappings Finally changed the 'show line diagnostics' (opening a popup with all diagnostics on current line) mapping to fit to the other remappings moving 'diagnostics' to the `e` key, with `le`. And fixed the ability to toggle diagnostics as virtual lines with `lO`. --- nvim/.config/nvim/lua/modules/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/modules/lsp.lua b/nvim/.config/nvim/lua/modules/lsp.lua index 02bd0b1..12d55e6 100644 --- a/nvim/.config/nvim/lua/modules/lsp.lua +++ b/nvim/.config/nvim/lua/modules/lsp.lua @@ -149,7 +149,7 @@ vim.api.nvim_create_autocmd("LspAttach", { o({ desc = "Next error" }) ) - map("n", "ld", "lua vim.diagnostic.open_float()", o({ desc = "Show line diagnostics" })) + map("n", "le", "lua vim.diagnostic.open_float()", o({ desc = "Show line diagnostics" })) map("n", "la", "lua vim.lsp.buf.code_action()", o({ desc = "Codeactions" })) map("n", "ln", "lua vim.lsp.buf.rename()", o({ desc = "Rename element" })) map("n", "lc", "lua vim.lsp.buf.declaration()", o({ desc = "Declaration" })) @@ -166,7 +166,7 @@ vim.api.nvim_create_autocmd("LspAttach", { local c = vim.diagnostic.config() or {} vim.diagnostic.config({ virtual_text = not c["virtual_text"] }) end, o({ desc = "Toggle virtual diag text" })) - if vim.fn.has("nvim-0.11") == true then -- new feature https://gpanders.com/blog/whats-new-in-neovim-0-11/#virtual-lines + if vim.fn.has("nvim-0.11") == 1 then -- new feature https://gpanders.com/blog/whats-new-in-neovim-0-11/#virtual-lines map("n", "lO", function() local c = vim.diagnostic.config() or {} vim.diagnostic.config({ virtual_lines = not c["virtual_lines"] }) From 9159ea177dd92186f6e4d244844bda65e1fc0726 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 1 Dec 2025 10:22:52 +0100 Subject: [PATCH 2/3] qutebrowser: Add cookie and social button blocklists --- qutebrowser/config/content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/config/content.py b/qutebrowser/config/content.py index 4f2a44c..e4b243d 100644 --- a/qutebrowser/config/content.py +++ b/qutebrowser/config/content.py @@ -7,7 +7,9 @@ c.content.blocking.adblock.lists = [ "https://easylist.to/easylist/easyprivacy.txt", "https://someonewhocares.org/hosts/hosts", "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext", + "https://www.i-dont-care-about-cookies.eu/abp/", "https://secure.fanboy.co.nz/fanboy-cookiemonster.txt", + "https://easylist.to/easylist/fanboy-social.txt", ] c.content.blocking.whitelist = ["piwik.org"] c.content.autoplay = False From 7003fe992fd5709b6b5129cc9dbf1929f724e95b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 1 Dec 2025 10:22:52 +0100 Subject: [PATCH 3/3] qutebrowser: Add function to remove floating elements Primarily used to get rid of cookie banners or 'subscribe-to-my-newsletter' annoyances. --- qutebrowser/config/alias.py | 3 +++ qutebrowser/config/config.py | 2 +- qutebrowser/config/maps.py | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/alias.py b/qutebrowser/config/alias.py index f87d6b1..cde8a1f 100644 --- a/qutebrowser/config/alias.py +++ b/qutebrowser/config/alias.py @@ -43,3 +43,6 @@ c.aliases["recent-downloads"] = "spawn --userscript recently-downloaded" # annotate with hypothesis c.aliases["hypothesis"] = "jseval (function(){window.hypothesisConfig=function(){return{showHighlights:true,appType:'bookmarklet'};};var d=document,s=d.createElement('script');s.setAttribute('src','https://hypothes.is/embed.js');d.body.appendChild(s)})();'hypothesis enabled'" + +# remove any sticky banners (e.g. cookie banners) +c.aliases["remove-floating"] = 'jseval (function(){var i,elements=document.querySelectorAll("body *");for(i=0;i