Folding is not respected when using `org_move_subtree_up` or `org_move_subtree_down`
まだ誰も着手していません。
評価
調査の方向性
まず 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時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
-
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 日以内に返信