orgmode creates a buffer when loading files #1058
chipsenkbeil
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I understand correctly from reading the
OrgFile.loadsource, loading involves creating a buffer for the org file.orgmode/lua/orgmode/files/file.lua
Lines 62 to 84 in 9fdc30e
Has this always been the case? I was just rewriting my config to remove dependencies on things like
project.nvim, which would dynamically change my current working directory based on whichever buffer I enter. I noticed that an org file showed up in a buffer upon startup, triggering the autocmdBufEnterwithout me directly asking to load the file itself.This wasn't an issue before, but now is because it's changing my current working directory to my org directory because my code thinks I just entered an org buffer.
I'm going to write a workaround for this with my config, but was surprised to see that this was how it worked.
Beta Was this translation helpful? Give feedback.
All reactions