Folding is not respected when using `org_move_subtree_up` or `org_move_subtree_down`
还没有人认领这个 Issue。
评估
调研方向
首先定位 org_move_subtree_up 和 org_move_subtree_down 入口点,并使用 issue 中所示的 org 文件复现该行为。检查每个 binding 如何移动标题并保留折叠状态。在报告的两种场景中将子标题 3 向上或向下移动后,现有折叠保持不变,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When moving headlines with those bindings the foldings are not respected
Steps to reproduce
Using the next file as a base:
* heading 1
** subheading 2
** subheading 3
*** subsubheading 1
text
**** subsubsubheading1
text
- If you unfold the first level and use
org_move_subtree_upon thesubheading 3, it will move the headline but it will fold everything so that you only seeheading 1 - If you show the folds below
subheading 3(but not enough to seesubsubsubheading1) and useorg_move_subtree_down, then all folds are open:
Expected behavior
Folds are respected when moving headlines around
Emacs functionality
No response
Minimal init.lua
local tmp_dir = vim.env.TMPDIR or vim.env.TMP or vim.env.TEMP or "/tmp"
local nvim_root = tmp_dir .. "/nvim_orgmode"
local lazy_root = nvim_root .. "/lazy"
local lazypath = lazy_root .. "/lazy.nvim"
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = nvim_root .. "/" .. name
end
-- Install lazy.nvim if not already installed
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"nvim-orgmode/orgmode",
event = "VeryLazy",
ft = { "org" },
config = function()
require("orgmode").setup({
org_agenda_files = {
"*.org",
},
})
end,
},
}, {
root = lazy_root,
lockfile = nvim_root .. "/lazy.json",
install = {
missing = false,
},
})
require("lazy").sync({
wait = true,
show = false,
})
Screenshots and recordings
No response
OS / Distro
Linux
Neovim version/commit
0.10.4
Additional context
No response
- 主要语言
- Lua
- 星标
- 3.9k
- 派生
- 193
- 平均合并
- 5 天 7 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nvim-orgmode/orgmode 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
nvim-orgmode/orgmode#1213 ·
-
Surface "add_to_drawer" in public headline API可能已有人在做 @barthollomew 于 8 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 64/100
nvim-orgmode/orgmode#1175 ·
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
nvim-orgmode/orgmode#1173 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 50/100
nvim-orgmode/orgmode#1172 · 1 条评论 · 1 个 reaction ·
-
Updating tree-sitter grammar ... aborting startup on Windows可能已有人在做 @lyn1dev 于 7 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 52/100
nvim-orgmode/orgmode#1170 ·
查看 nvim-orgmode/orgmode 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
-
bug discord triage
难度 2/5 1-3 小时 新手友好度 68/100
fitzforge/polestar#5203 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
-
bug - under investigation
难度 2/5 1-3 小时 新手友好度 84/100
Piwigo/PiwigoPublish-lrc-plugin#84 · 1 条评论 ·
-
forever from-game
难度 2/5 1-3 小时 新手友好度 64/100
openmap-world/openmap#579 ·
维护者通常 1 天内回复