Placeholders are substituted twice for stored commands
还没有人认领这个 Issue。
评估
调研方向
阅读 #44 中新增的 set_task_command、run_task、历史选择器和文件名检查。追踪已保存命令和一次性命令在哪里进行占位符替换,然后检查历史选择器的命令路径。完成标准是:已保存命令只替换一次,一次性命令仍可正常工作,并且包含 $E_FN 的文件名会被接受。
由索引模型根据 Issue 内容生成。
描述
A command that uses $E_FN is filled in when it is set (set_task_command), and then searched for $E_FN again when it runs (run_task). The history picker also passes an already filled-in command back through set_task_command.
For normal filenames the second pass finds nothing. If the filename itself contains the text $E_FN, the second pass replaces it again and produces a broken command. For example, a file named test_$E_FN.js would run echo 'test_'test_$E_FN.js'.js' instead of echo 'test_$E_FN.js'.
Since #44, such filenames are rejected with an error, so this cannot produce a broken or unsafe command. The proper fix is to fill in placeholders only once:
run_tasksubstitutes placeholders only for one-off commands; a stored command is already filled in.- The history picker stores the chosen entry directly instead of passing it through
set_task_commandagain.
Once that is done, the filename check added in #44 can be removed.
- 主要语言
- Lua
- 星标
- 161
- 派生
- 12
- 平均合并
- 25 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/executor.nvim 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
google/executor.nvim#45 ·
-
难度 5/5 一周以上 新手友好度 20/100
google/executor.nvim#38 ·
-
难度 3/5 1-2 天 新手友好度 45/100
google/executor.nvim#35 ·
-
[Feature Request] Option to run ExecutorShowDetail when the current task finishes可能已有人在做 @jackfranklin 于 513 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
google/executor.nvim#33 · 9 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
google/executor.nvim#26 · 3 条评论 ·
查看 google/executor.nvim 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
teradata-labs/loom#624 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
lsp
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复