Compare commits
5 Commits
c9914b7827
...
e29fd6214f
| Author | SHA1 | Date | |
|---|---|---|---|
| e29fd6214f | |||
| 4e87bcfb43 | |||
| 815e31186b | |||
| d7bc73010d | |||
| d5feef4ddc |
+15
-15
@@ -35,24 +35,24 @@
|
||||
"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",
|
||||
"selected": true,
|
||||
"virtual_hid_keyboard": { "keyboard_type_v2": "iso" }
|
||||
@@ -47,6 +47,7 @@ vim.cmd [=[
|
||||
nnoremap ,x <C-x>
|
||||
nnoremap ,rl :checktime<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>
|
||||
|
||||
|
||||
@@ -92,6 +92,12 @@ func main() {
|
||||
}
|
||||
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{
|
||||
fuzzyfinder.WithPreviewWindow(
|
||||
func(i, width, height int) string {
|
||||
@@ -100,6 +106,10 @@ func main() {
|
||||
return ""
|
||||
}
|
||||
seshName := seshNames[i]
|
||||
content, ok := printSeshContents(seshName)
|
||||
if ok {
|
||||
return content
|
||||
}
|
||||
windows, _ := config[seshName]
|
||||
builder := strings.Builder{}
|
||||
for _, window := range windows {
|
||||
|
||||
Reference in New Issue
Block a user