Binding "tab" key
还没有人认领这个 Issue。
评估
调研方向
先从 issue 中所示的 OnChar 事件处理、npp.AddShortcut 和 editor:AddText("text") 用法开始,然后将它们对 Tab 键的行为与 Scintilla 的 SCK_TAB 文档进行比较。完成标准是确定脚本是否能够在不禁用默认缩进的情况下检测 Tab,并记录或提供一种在按下该键后插入文本的可行方法。
由索引模型根据 Issue 内容生成。
描述
I see here https://www.scintilla.org/ScintillaDoc.html#KeyBindings that tab is available as SCK_TAB but it can't be assigned to a shortcut npp.AddShortcut or using this:
function func1(ch)
if (ch == " ") then
print("Doesn't work (this message is never shown).");
end
print("Typed a regular character like a, b, c, d, e, etc... works.")
end
npp.AddEventHandler("OnChar", func1)
If I assign it manually in Notepad++'s settings then it works but the default action of [tab] becomes disabled (so I can't make indentation then).
Is there a way to detect [tab] so that I could insert text after it's pressed with editor:AddText("text");?
- 主要语言
- C
- 星标
- 130
- 派生
- 24
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dail8859/LuaScript 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 52/100
-
难度 4/5 3-5 天 新手友好度 42/100
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 1/5 1 小时以内 新手友好度 55/100
查看 dail8859/LuaScript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
elf_loader: Xtensa ignores the addend of R_XTENSA_GLOB_DAT / R_XTENSA_JMP_SLOT (C++ vtables)可能已有人在做 @diplfranzhoepfinger 今天认领。 未关闭elf_loader
难度 2/5 1-3 小时 新手友好度 72/100
espressif/esp-iot-solution#813 ·
维护者通常 1 天内回复
-
Status: Opened Type: Bug
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
msys2/MSYS2-packages#6919 ·
维护者通常 1 天内回复
-
severity: low
难度 2/5 1-3 小时 新手友好度 76/100
luainkernel/lunatik#2221 ·
维护者通常 1 天内回复