We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae34000 commit 345c2f0Copy full SHA for 345c2f0
lua/orgmode/parser/files.lua
@@ -185,14 +185,21 @@ function Files.update_file(filename, action)
185
vim.cmd(':silent! w')
186
return true
187
end
188
- local old_height = vim.api.nvim_win_get_height(0)
189
- vim.cmd('silent! topleft split ' .. filename)
+ local bufnr = vim.fn.bufadd(filename)
+ vim.api.nvim_open_win(bufnr, true, {
190
+ relative = 'editor',
191
+ width = 1,
192
+ height = 1,
193
+ row = 99999,
194
+ col = 99999,
195
+ zindex = 1,
196
+ style = 'minimal',
197
+ })
198
if action then
199
action(file)
200
201
vim.cmd('silent! wq!')
202
vim.api.nvim_set_current_win(cur_win)
- vim.cmd(string.format('silent! resize %d', old_height))
203
204
205
0 commit comments