Compare commits

...

5 Commits

Author SHA1 Message Date
Ivar Fatland e29fd6214f add preview into active sessions 2026-07-22 23:56:30 +02:00
Ivar Fatland 4e87bcfb43 Revert "remove auto-complete and snippy"
This reverts commit d5feef4ddc.
2026-07-22 23:41:22 +02:00
Ivar Fatland 815e31186b carabiner backup 2026-07-22 23:40:39 +02:00
Ivar Fatland d7bc73010d add convenient completion key combo c-k 2026-07-19 17:28:07 +02:00
Ivar Fatland d5feef4ddc remove auto-complete and snippy
foobar
2026-07-19 17:27:49 +02:00
3 changed files with 26 additions and 15 deletions
@@ -35,24 +35,24 @@
"type": "basic" "type": "basic"
} }
] ]
},
{
"description": "swap alt and cmd",
"manipulators": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }],
"type": "basic"
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }],
"type": "basic"
}
]
} }
] ]
}, },
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 21042,
"vendor_id": 1155
},
"simple_modifications": [
{
"from": { "key_code": "grave_accent_and_tilde" },
"to": [{ "key_code": "non_us_backslash" }]
}
]
}
],
"name": "KarabinerTS", "name": "KarabinerTS",
"selected": true, "selected": true,
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" } "virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
+1
View File
@@ -47,6 +47,7 @@ vim.cmd [=[
nnoremap ,x <C-x> nnoremap ,x <C-x>
nnoremap ,rl :checktime<CR> nnoremap ,rl :checktime<CR>
nnoremap ,m :wa<CR>:make<CR> nnoremap ,m :wa<CR>:make<CR>
inoremap <c-k> <c-x>
nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR> nnoremap ,cD :call setqflist(filter(getqflist(), 'v:val != getqflist()[getqflist({"idx": 0}).idx - 1]'))<CR>
+10
View File
@@ -92,6 +92,12 @@ func main() {
} }
slices.Sort(seshNames) slices.Sort(seshNames)
printSeshContents := func(name string) (content string, ok bool) {
cmd := exec.Command(tmux, "capture-pane", "-epN", "-t", name)
stdout, err := cmd.Output()
return string(stdout), err == nil
}
options := []fuzzyfinder.Option{ options := []fuzzyfinder.Option{
fuzzyfinder.WithPreviewWindow( fuzzyfinder.WithPreviewWindow(
func(i, width, height int) string { func(i, width, height int) string {
@@ -100,6 +106,10 @@ func main() {
return "" return ""
} }
seshName := seshNames[i] seshName := seshNames[i]
content, ok := printSeshContents(seshName)
if ok {
return content
}
windows, _ := config[seshName] windows, _ := config[seshName]
builder := strings.Builder{} builder := strings.Builder{}
for _, window := range windows { for _, window := range windows {