refile also moves the subsequent sibling heading
まだ誰も着手していません。
評価
調査の方向性
まず Org mode の refile コマンドと、どの見出しと子要素が移動するかを決定するロジックを特定します。提供された org ドキュメントと <leader>or で問題を再現し、refile 対象の後に兄弟の見出しが続くケースをカバーする回帰テストを追加または更新します。完了とは、Heading 3 は移動し、Heading 4 は Heading 1 の下に残ることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Refiling a heading also moves the sibling heading that follows it.
checkhealth
orgmode: ✅
Orgmode ~
- ✅ OK Treesitter grammar installed (version 2.1.0)
- ✅ OK Setup called
- ✅ OK
org_agenda_filesconfigured - ✅ OK
org_default_notes_fileconfigured
Steps to reproduce
- Open a file inside a directory covered by
org_agenda_files(e.g., ~/orgfiles/a.org) with this content:
* Heading 1
** Heading 2
*** Heading 3
*** Heading 4
* Heading 5
- Put the cursor on Heading 3 and run refile (
<leader>or) - Choose Heading 5 as the target
- Heading 4 is moved along with Heading 3.
Expected behavior
Only Heading 3 should move. Heading 4 should stay where it was.
Emacs functionality
In Emacs, only the heading and its children move. Following siblings aren't included.
Minimal init.lua
vim.g.mapleader = " "
vim.pack.add({ 'https://github.com/nvim-orgmode/orgmode' })
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
})
-- Experimental LSP support
vim.lsp.enable('org')
Screenshots and recordings
No response
nvim-orgmode version
65eed3046dd599f20392bc8b1ec87e98f2eb492c
OS / Distro
Ubuntu 24.04 LTS (WSL2)
Neovim version/commit
0.12.6
Additional context
No response
- 主要言語
- Lua
- スター
- 3.9k
- フォーク
- 193
- 平均マージ
- 5日 7時間
- マージ済み PR(30日)
- 6
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nvim-orgmode/orgmode のほかの issue
-
Surface "add_to_drawer" in public headline API対応中かも @barthollomew が 7 日前に担当しました。 オープン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 が 6 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
nvim-orgmode/orgmode#1170 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
nvim-orgmode/orgmode#1168 ·
nvim-orgmode/orgmode の issue をすべて見る
似ている issue
-
bug: accuracy
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PathOfBuildingCommunity/PathOfBuilding#10649 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
version-fox/vfox-php#41 ·
メンテナーはふだん 1 日以内に返信
-
bug(image): image disappears when returning to an existing image buffer (hidden never reset)対応中かも @ApexGP が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
folke/snacks.nvim#3011 ·
-
easy first-contributor first-contributors good first issue help wanted lua up-for-grabs
難易度 1/5 1〜3時間 初心者へのやさしさ 94/100
fork-commit-merge/fork-commit-merge#8750 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
NaixGames/Polycosmos#81 ·