Folding is not respected when using `org_move_subtree_up` or `org_move_subtree_down`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Comienza localizando los puntos de entrada org_move_subtree_up y org_move_subtree_down y reproduce el comportamiento con el archivo org mostrado en el issue. Inspecciona cómo cada binding mueve los encabezados y conserva el estado de plegado. Se considera terminado cuando los plegados existentes permanecen sin cambios después de mover el subencabezado 3 hacia arriba o hacia abajo en ambos escenarios reportados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Lua
- Estrellas
- 3.9k
- Forks
- 193
- Merge medio
- 5 d 7 h
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nvim-orgmode/orgmode
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nvim-orgmode/orgmode#1213 ·
-
Surface "add_to_drawer" in public headline APIPosiblemente ocupada @barthollomew la tomó hace 8 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
nvim-orgmode/orgmode#1175 ·
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
nvim-orgmode/orgmode#1173 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
nvim-orgmode/orgmode#1172 · 1 comentario · 1 reacción ·
-
Updating tree-sitter grammar ... aborting startup on WindowsPosiblemente ocupada @lyn1dev la tomó hace 7 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
nvim-orgmode/orgmode#1170 ·
Todos los issues de nvim-orgmode/orgmode
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
bug discord triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fitzforge/polestar#5203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add Scrolling option to FontsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
bug - under investigation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Piwigo/PiwigoPublish-lrc-plugin#84 · 1 comentario ·
-
wetlands no boat iconAbiertoforever from-game
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
openmap-world/openmap#579 ·
Los mantenedores suelen responder en 1 día