toot icon indicating copy to clipboard operation
toot copied to clipboard

toot post -e vim not working

Open vodrazka opened this issue 3 years ago • 4 comments

hi,

i tried using vim for posting but i get this error: You must specify either text or media to post.

(i fill the file with text above the specifed line)

I get the same error with neovim (nvim command).

It works with nano. It's probably a configuration issue, but i can't figure out whats the reason. The temp file *.toot is created and accessible (writable)...

vodrazka avatar Nov 19 '22 23:11 vodrazka

@vodrazka regardless of whether #244 is accepted or not, you can add set backupcopy=yes to make it work now.

sharils avatar Dec 03 '22 07:12 sharils

I'm unable to reproduce this issue. I'm using vim for posting from toot regularly, from Debian and Fedora.

My vim settings have backupcopy=auto and backup=nobackup. Do you have backup enabled in settings?

ihabunek avatar Dec 08 '22 12:12 ihabunek

I have backups turned off. Enabling them fixes this.

My init.lua (neovim) has this now:

-- toot
vim.opt.backupcopy = 'yes'

vodrazka avatar Dec 08 '22 12:12 vodrazka

Hi @ihabunek - I’m on VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Nov 25 2022 21:13:47). :set backup? is nobackup. :set backupcopy? is backupcopy=yes. I can replicate if :set backupcopy=auto. Let me know what I can do to help.

sharils avatar Dec 11 '22 04:12 sharils