Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used
On Thu, 6 Jul 2017, Andrew Borodin wrote: On Thu, 6 Jul 2017 16:26:10 +0200 (CEST) "Yury V. Zaytsev" wrote: I've just reproduced the issue with an external editor. I guess for some reason we don't upload the file back when the editor quits. You are welcome to file a bug, and even better would be if you could have a look at it, and provide a patch. https://midnight-commander.org/ticket/37 Oh, it's so old that I've completely forgotten about it. The last idea doesn't sound too bad though, any takers? -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used
On Thu, 6 Jul 2017 16:26:10 +0200 (CEST) "Yury V. Zaytsev" wrote: > I've just reproduced the issue with an external editor. I guess for some > reason > we don't upload the file back when the editor quits. You are welcome to file > a bug, > and even better would be if you could have a look at it, and provide a patch. https://midnight-commander.org/ticket/37 -- Andrew ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used
Hi Yury, I'd like to help but I'm in the middle of looking for a new job now. Maybe when I'm sorted with another job I'd be able to help then. Kind regards, Keith Roberts mob: 0794 88 503 41 On 2017-07-06 15:26, Yury V. Zaytsev wrote: On Thu, 6 Jul 2017, Keith Roberts wrote: I've known of a similar issue for some time. I've just reproduced the issue with an external editor. I guess for some reason we don't upload the file back when the editor quits. You are welcome to file a bug, and even better would be if you could have a look at it, and provide a patch. -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used
On Thu, 6 Jul 2017, Keith Roberts wrote: I've known of a similar issue for some time. I've just reproduced the issue with an external editor. I guess for some reason we don't upload the file back when the editor quits. You are welcome to file a bug, and even better would be if you could have a look at it, and provide a patch. -- Sincerely yours, Yury V. Zaytsev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: MC doesn't edit files on remote file systems (e.g. ssh) if external editor is used
Hi Pavel, I've known of a similar issue for some time. My workaround to edit a file with ftpfs is: In mc I have the left pane for my local machine, and the right pane for the remote ftpfs file system. download the file to edit it on your local machine. make an original copy on the local machine. edit the file on your local machine. If there are a lot of changes, diff your edited copy with the original, to make sure you've got all the edits right. use ftpfs to copy the edited file back to the server and overwrite the remote file you are trying to edit. I cannot SSH into my remote hosting so I have to use ftp. Another good choice is to do the same but with Filezilla ftp client. Using Filezilla you can do a diff of what's on your local machine with what's on the remote machine. Kind regards, Keith Roberts mob: 0794 88 503 41 On 2017-07-06 14:04, Pavel Moukhataev via mc wrote: mc doesn't edit files on remote file systems - e.g. ssh vfs. It allows browsing, allows editing, allows saving file after editing. But it doesn't actually save file. After refreshing (Control+R) I see previous file version. I use mcedit as mc editor mc --version GNU Midnight Commander 4.8.18 Built with GLib 2.50.1 Using the S-Lang library with terminfo database With builtin Editor With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; $ uname -a Linux pm-asus-note 4.10.0-26-generic #30-Ubuntu SMP Tue Jun 27 09:30:12 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux -- С уважением, Павел +7-903-258-5544 skype://pavel.moukhataev ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc