-
-
Notifications
You must be signed in to change notification settings - Fork 158
org_refile
can't refile headings
#911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The error is due to the missing Are you able to apply this patch to your local orgmode installation and give me the message output? These are the steps:
diff --git a/lua/orgmode/utils/fs.lua b/lua/orgmode/utils/fs.lua
index ed27767..a3bdaf8 100644
--- a/lua/orgmode/utils/fs.lua
+++ b/lua/orgmode/utils/fs.lua
@@ -55,6 +55,7 @@ function M.trim_common_root(paths)
local result = {}
local root = vim.fn.fnamemodify(filepaths[1], ':h') .. '/'
+ print('root', vim.inspect(root))
for _, path in ipairs(paths) do
local relative_path = path:sub(#root + 1)
|
The patch failed to apply. I've inspected the file manually and that's not how local root = vim.pesc(vim.fn.fnamemodify(filepaths[1], ':h')) .. '/'` I've added the By the way, the trailing |
You are using an older version or orgmode. This issue was already reported and fixed #877. |
I've updated my plugins and the issue disappeared. Thanks you! I'll keep in mind to update periodically. |
Describe the bug
I'm trying to move a heading from
my-org-file.org
torefile.org
. Both files are located in${HOME}/org
. When I do<Leader>or
the autocomplete omits a few characters from the start of each file, e.g.refile.org
is shown asefile.org
. Upon selecting any file or typing the correct file myself I get the following error:"nil" is not a file specified in the "org_agenda_files" setting. Refiling canceled.
.Steps to reproduce
refile.org
.2025-02-27.org
.2025-02-27.org
:<Leader>oit
and addHello, world!
.2025-02-27.org
:<Leader>or
on the header you've added previously and typerefile.org
.Expected behavior
I expect that
<Leader>or
moves the heading to the desired destination.Emacs functionality
No response
Minimal init.lua
Screenshots and recordings
Screen.Recording.2025-02-27.at.13.06.23.mov
OS / Distro
MacOS 15.3.1
Neovim version/commit
NVIM v0.10.4 / Build type: Release / LuaJIT 2.1.1736781742
Additional context
No response
The text was updated successfully, but these errors were encountered: