Skip to content

Instantly share code, notes, and snippets.

@pabloariasal
pabloariasal / dmenu_custom_bindings.patch
Created July 25, 2025 19:30
dmenu custom keybindings
diff --git a/dmenu.1 b/dmenu.1
index 323f93c..44ab98f 100644
--- a/dmenu.1
+++ b/dmenu.1
@@ -84,9 +84,6 @@ embed into windowid.
dmenu is completely controlled by the keyboard. Items are selected using the
arrow keys, page up, page down, home, and end.
.TP
-.B Tab
-Copy the selected item to the input field.
@pabloariasal
pabloariasal / convert_to_lsp_snippet.py
Last active December 29, 2024 10:11
Convert snippets in SnipMate syntax to LSP snippet syntax
#!/usr/bin/python3
import sys
import re
import json
def main():
with open(sys.argv[1], encoding='utf-8') as f:
s = f.read()
@pabloariasal
pabloariasal / iterator_facade.cpp
Last active November 16, 2023 17:58
Example implementation of a C++ Iterator Facade using CRTP
#include <array>
#include <cassert>
#include <catch2/catch_test_macros.hpp>
#include <cstddef>
#include <iterator>
#include <memory>
#include <type_traits>
// Facade for input and bidirectional iterator, but can be expanded to any type
// of iterator