dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim: new keybind to pipe output of external command into temp buffer
0c623d7d2cad6c6f42b1df6dc02de80bb755bfd6
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (2)
neovim/lua/bugabinga/options/keymaps.lua
Modified 100 + description =
'Run command and pipe output into temp buffer',
101 + category =
'external',
102 + keys =
'<leader>c',
103 + command =
function()
104 + vim.ui.input({
prompt =
'command: ' },
function(cmd)
105 + if cmd
and cmd
~= '' then 106 + vim.cmd
[[noswapfile vnew]] 107 + vim.bo.buftype
= 'nofile' 108 + vim.bo.bufhidden
= 'wipe' 109 + vim.api.nvim_buf_set_lines(
0,
0,
-1,
false, vim.fn.systemlist(cmd))
wezterm/bugabinga/launch.lua
Modified 4 4 local wez
= require 'wezterm' 6 6 return function ( cfg )
9 9 label =
'Anime (new)',
10 - args = {
'nu',
'--execute',
'ani-cli --skip', },
10 + args = {
'ani-cli',
'--skip', },
11 11 cwd = wez.home_dir,
14 14 label =
'Anime (continue)',
15 - args = {
'nu',
'--execute',
'ani-cli --skip --continue', },
15 + args = {
'ani-cli',
'--skip',
'--continue', },
16 16 cwd = wez.home_dir,
27 27 args
= {
'cha',
'-V', },
28 28 cwd
= wez.home_dir,
37 32 args = {
'aerc', },
43 38 cwd
= wez.home_dir,
41 + label =
'System Monitor',
48 43 cwd = wez.home_dir,
53 48 cwd
= wez.home_dir,
56 - label =
'Netscanner',
57 - args = {
'sudo', wez.home_dir
.. '/.cargo/bin/netscanner', },
51 + label =
'Calculator',
63 53 cwd = wez.home_dir,
68 58 cwd
= wez.home_dir,
61 + label =
'Host Info',
72 62 args = {
'nu',
'-c',
'loop {clear; macchina --current-shell --interface wlp3s0; sleep 5sec}', },
73 63 cwd = wez.home_dir,