Compare commits

...

9 Commits

Author SHA1 Message Date
inkch
86ccfa62fa tmuxsh: nvim.sh: startinsert and markdown as default 2025-08-20 15:05:01 +09:00
inkch
ef4259d1f1 mozc: update azik romantable 2025-08-20 15:05:01 +09:00
inkch
39a42861b8 nvim: line breaks for readability 2025-08-20 15:05:01 +09:00
inkch
cb5d569142 nvim: enable undofile 2025-08-20 15:05:01 +09:00
inkch
ae55a1cdde nvim: auto undo-break 2025-08-20 15:05:01 +09:00
inkch
59cc290bce nvim: add keymaps <C-c><C-c> and <C-c><C-q> 2025-08-20 15:05:01 +09:00
inkch
1341a44239 i3: open firefox dev edition instead of chatgpt 2025-08-20 15:05:01 +09:00
inkch
cd303f8eca i3: add keybind to open mozc config 2025-08-20 15:05:01 +09:00
inkch
164aa24311 i3: use textpad 2025-08-20 15:04:57 +09:00
5 changed files with 35 additions and 6 deletions

View File

@@ -206,7 +206,7 @@ bindsym $m+bracketright move right; resize set width 80 ppt
## Alacritty
bindsym $m+comma exec --no-startup-id launch-console
bindsym $m+$s+comma exec --no-startup-id launch-console tmp
bindsym $m+$s+period exec --no-startup-id launch-console nvim
bindsym $m+$s+period exec --no-startup-id textpad
@@ -242,7 +242,7 @@ bindsym $m+$a+slash exec --no-startup-id nowplaying
# Browser
bindsym $m+m exec --no-startup-id open-zen
bindsym $m+$s+m exec --no-startup-id open-zen-private
bindsym $m+n exec --no-startup-id chatgpt
bindsym $m+n exec --no-startup-id open-firefox-dev
# Emacs
bindsym $m+period exec --no-startup-id open-emacs
@@ -286,6 +286,7 @@ bindsym $m+$c+$a+$s+t exec timer.py
## mozc
bindsym $m+$c+e exec /usr/lib/mozc/mozc_tool --mode=config_dialog
bindsym $m+$c+t exec /usr/lib/mozc/mozc_tool --mode=dictionary_tool
bindsym $m+$c+r exec /usr/lib/mozc/mozc_tool --mode=word_register_dialog
@@ -346,6 +347,7 @@ for_window [title="Edit metadata.*" class="calibre.*"] floating enable, resize s
for_window [title="Alacritty@tmux:tmp"] floating enable, resize set 800 800, move position center
for_window [title="Alacritty@tmux:emacs"] move position left, resize set width 20 ppt
for_window [title="Alacritty@tmux:nvim"] floating enable, resize set 800 800, move position center
for_window [title="__text_scratchpad"] floating enable, resize set 800 800, move position center
for_window [class="org.remmina.Remmina"] floating enable, resize set 1200 900, move position center

View File

@@ -6,6 +6,10 @@ vim.keymap.set('n', '<leader>pv', vim.cmd.Ex)
vim.keymap.set('n', '<leader>M', '<cmd>messages<CR>')
vim.keymap.set('n', '<leader>q', '<cmd>x<CR>')
vim.keymap.set('n', '<leader>QQ', '<cmd>q!<CR>')
vim.keymap.set('n', '<C-c><C-c>', '<cmd>x<CR>')
vim.keymap.set('i', '<C-c><C-c>', '<cmd>x<CR>')
vim.keymap.set('n', '<C-c><C-q>', '<cmd>q!<CR>')
vim.keymap.set('i', '<C-c><C-q>', '<cmd>q!<CR>')
{{- if ne .chezmoi.username "root" }}
vim.keymap.set('n', '<leader>W', '<cmd>w !sudo -A tee %<CR>')
{{- end }}
@@ -16,3 +20,5 @@ vim.keymap.set('n', '<C-u>', '<C-u>zz')
vim.keymap.set('n', '<C-d>', '<C-d>zz')
vim.keymap.set('n', '<PageUp>', '<C-u>zz')
vim.keymap.set('n', '<PageDown>', '<C-d>zz')
vim.keymap.set("i", "<CR>", "<C-g>u<CR>")

View File

@@ -24,7 +24,9 @@ vim.opt.cursorline = true
vim.opt.ruler = true
vim.opt.wildmenu = true
vim.opt.gdefault = true vim.opt.autoread = true vim.opt.history = 1000
vim.opt.gdefault = true
vim.opt.autoread = true
vim.opt.history = 1000
vim.opt.encoding = "utf-8"
vim.opt.number = true
vim.opt.relativenumber = true
@@ -38,6 +40,9 @@ vim.opt.listchars = "tab:>>,trail:_,eol:$,multispace:··,extends:>,precedes:<,n
vim.opt.encoding = "utf-8"
vim.opt.fenc = "utf-8"
vim.opt.spell = true
vim.opt.undofile = true
vim.opt.undodir = vim.fn.expand("~/.cache/nvim/undo")
if vim.fn.executable('rg') then
vim.opt.grepprg = 'rg --vimgrep --smart-case --hidden'
@@ -72,3 +77,18 @@ vim.opt.foldmethod = "indent"
vim.opt.foldenable = false
vim.opt.foldlevel = 99
vim.g.markdown_folding = 1 -- enable markdown folding
-- auto undo break (insert mode)
local function map_undobreak(chars)
local term = vim.api.nvim_replace_termcodes("<C-g>u", true, false, true)
for _, ch in ipairs(chars) do
vim.keymap.set("i", ch, function() return term .. ch end,
{ expr = true, silent = true, desc = "undobreak before '" .. ch .. "'" })
end
end
map_undobreak({
".", ",", "!", "?", ";", ":", ")", "]", "}", ">", -- 英文系
"。", "、", "", "", "", "", "", "", "」", "』", "" -- 和文系
})

View File

@@ -9,6 +9,7 @@
- ー
. 。
/ ・
:ar ありがとう
:ii 良い
:im 今
:nr なるほど
@@ -17,7 +18,6 @@
[ 「
] 」
a あ
at ありがとう
ba ば
bb 僕
bd べん
@@ -82,7 +82,7 @@ do ど
dp どう
dq だい
ds です
dt だ
dt だって
du づ
dv だい
dw でい
@@ -476,6 +476,7 @@ si し
sj すん
sk しん
sl そん
sm しま
sn さん
so そ
sp そう

View File

@@ -4,4 +4,4 @@ tmux neww -n nvim
d=$(date +'%Y%m%dT%H%M%S')
rnd=$(diceware -n 2 --no-cap -d -)
tmux send-keys -t 0 "nvim /tmp/${d}-${rnd}" C-m
tmux send-keys -t 0 "nvim -c startinsert -c 'set ft=markdown' /tmp/${d}-${rnd}" C-m