From 540d0488344d72a3d4d0913e6d524d020ca3db0e Mon Sep 17 00:00:00 2001 From: OGAWA Keiji <70509917+kibi2@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:01:49 +0900 Subject: [PATCH 1/2] fix(sample): restore corrupted sample.pukiwiki file --- tests/data/sample.pukiwiki | 58 +++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/tests/data/sample.pukiwiki b/tests/data/sample.pukiwiki index 3eaf5fa..15af35c 100644 --- a/tests/data/sample.pukiwiki +++ b/tests/data/sample.pukiwiki @@ -1,31 +1,22 @@ -* 今日の予定 [#b1c3e09d] - -** tirenvi [#xf25a077] -- tir-pukiwiki, --md option ? --raw --- 開発着手 -- ✅filetypeとparserを関連つける -- align, width = right+1, center+2 -- テストケース、セル幅0 -- padding config : 色 -- excel, Google doc とかコピペで使えないか? - * pukiwiki 表 [#k0258d54] - table || -|| | -|a || -|bbbb || +||| + +|a| +|bbbb| - PIPE |a -|a |||| -|a|a|c|| -|a|a|h|c| -|a|a|3|h| -|1|2|3|| +|a| +|a|a|c +|a|a|h|c +| a |a|3x|h +|a|a|3| +,1,2,3 |a|a|3|4|f |a|a|3|4|5|x |a|a|3|4|5|ch @@ -33,13 +24,13 @@ - CSV -|a| +,a , -|||||| -|a||| -|1|2|| -|1|2|| -|1|2|3| +,|,| +,a, +,1,2 +,1,2, +,1,2,3 - format @@ -49,18 +40,21 @@ |a|b|c| |CENTER:|RIGHT:|LEFT:|c |foot|foot|foot|f -|BGCOLOR(red):|BGCOLOR(green):|BGCOLOR(blue):|c +|BGCOLOR(red): |BGCOLOR(green): |BGCOLOR(blue):|c |H1|H2|H3|h -|a|b|c| +|a|b|c| |F|F|F|f -|a|b|c| +,a,b,c + +|BGCOLOR(red): |BGCOLOR(green): |BGCOLOR(blue):|c +|H1|H2|H3|h - width |100|100|100|c |a|b2|12345678901234567890| -- CSV(escape) +- CSV -|1a|2 a|3a| -|1 ,|2b|3 b| -|||c| +,1a,2 a, 3a +,"1 ,",2b,"""3 b " +," ",, c From 085bd777ff0417a0fbff6c7785d23a3d3c8147b8 Mon Sep 17 00:00:00 2001 From: OGAWA Keiji <70509917+kibi2@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:06:39 +0900 Subject: [PATCH 2/2] chore(luals): change @class Check_options from unsupported to supported --- lua/tirenvi/editor/autocmd.lua | 18 +++++++++--------- lua/tirenvi/editor/commands.lua | 2 +- lua/tirenvi/state/buf_state.lua | 2 +- lua/tirenvi/types.lua | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lua/tirenvi/editor/autocmd.lua b/lua/tirenvi/editor/autocmd.lua index ee87453..ee7cf99 100644 --- a/lua/tirenvi/editor/autocmd.lua +++ b/lua/tirenvi/editor/autocmd.lua @@ -35,7 +35,7 @@ end ---@param bufnr number local function attach_on_lines(bufnr) local check_items = { - unsupported = true, + supported = true, has_parser = true, } if buf_state.should_skip(bufnr, check_items) then @@ -99,7 +99,7 @@ local function register_autocmds() -- Process only items for which a parser has been specified callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, no_vscode = true, has_parser = true, }) then @@ -114,7 +114,7 @@ local function register_autocmds() group = augroup, callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, is_tir_vim = true, }) then return @@ -128,7 +128,7 @@ local function register_autocmds() group = augroup, callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, }) then return end @@ -141,7 +141,7 @@ local function register_autocmds() group = augroup, callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, has_parser = true, }) then return @@ -156,7 +156,7 @@ local function register_autocmds() callback = guard.guarded(function(args) debug_entry_point(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, has_parser = true, }) then return @@ -171,7 +171,7 @@ local function register_autocmds() group = augroup, callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, has_parser = true, }) then return @@ -189,7 +189,7 @@ local function register_autocmds() group = augroup, callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, is_tir_vim = true, }) then return @@ -202,7 +202,7 @@ local function register_autocmds() vim.api.nvim_create_autocmd({ "BufWinEnter", "WinEnter" }, { callback = guard.guarded(function(args) if buf_state.should_skip(args.buf, { - unsupported = true, + supported = true, is_tir_vim = true, }) then return diff --git a/lua/tirenvi/editor/commands.lua b/lua/tirenvi/editor/commands.lua index be14a73..52e72e7 100644 --- a/lua/tirenvi/editor/commands.lua +++ b/lua/tirenvi/editor/commands.lua @@ -31,7 +31,7 @@ end local function cmd_toggle(bufnr) log.debug("===+===+===+===+=== toggle %s ===+===+===+===+===", bufnr) if buf_state.should_skip(bufnr, { - unsupported = true, + supported = true, has_parser = true, }) then return diff --git a/lua/tirenvi/state/buf_state.lua b/lua/tirenvi/state/buf_state.lua index fecd587..2591a1a 100644 --- a/lua/tirenvi/state/buf_state.lua +++ b/lua/tirenvi/state/buf_state.lua @@ -63,7 +63,7 @@ function M.is_undo_mode(bufnr) end local checks = { - unsupported = function(bufnr) + supported = function(bufnr) -- return bo[bufnr].buftype == "" return bo[bufnr].modifiable end, diff --git a/lua/tirenvi/types.lua b/lua/tirenvi/types.lua index 8af0c43..cf3108d 100644 --- a/lua/tirenvi/types.lua +++ b/lua/tirenvi/types.lua @@ -59,7 +59,7 @@ ---@field tab string ---@class Check_options ----@field unsupported? boolean +---@field supported? boolean ---@field ensure_tir_vim? boolean ---@field is_tir_vim? boolean ---@field has_parser? boolean