mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
TaskWikiEdit: Use :terminal instead of :! in NEOVIM
This commit is contained in:
parent
6bcc93cfe6
commit
c5d46e80f2
1 changed files with 7 additions and 2 deletions
|
@ -125,8 +125,13 @@ class SelectedTasks(object):
|
|||
location_override = ('rc.data.location=' + alternate_data_location
|
||||
if alternate_data_location else '')
|
||||
|
||||
vim.command('! task {0} {1} edit'
|
||||
.format(location_override, vimwikitask.uuid))
|
||||
# Build command template, it is different for neovim and vim
|
||||
command = (
|
||||
('terminal' if util.NEOVIM else '!') +
|
||||
' task {0} {1} edit'
|
||||
)
|
||||
vim.command(command.format(location_override, vimwikitask.uuid))
|
||||
|
||||
self.save_action('edit')
|
||||
|
||||
@errors.pretty_exception_handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue