O
O
OnYourLips2017-10-19 11:25:51
linux
OnYourLips, 2017-10-19 11:25:51

Are there console clients for text editors?

For example, I type in the server console:
remote_edit filename.sh
This script connects to the IP address of the ssh user, sends a file to the port, waits, and picks up the changes.
And the user has a script on the port that receives the file, opens it in an editor (for example, vscode) and sends it when it is saved.
In order not to torture yourself with vim, but to work with the usual comfortable environment.
Are there ready-made solutions?
It is clear that it is not difficult to do this on your own at the prototype level in 1-2 evenings. But from prototype to user-friendly software, there is too much work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
display: block, 2017-10-19
@OnYourLips

for sublime
https://github.com/henrikpersson/rsub
for atom
https://atom.io/packages/remote-atom
You can find it for your editor.
Suitable for those who have the ability to install rmate on the server side.

F
fraky, 2017-10-19
@fraky

sshfs is not an option at all, when you can edit the code on your machine even in the same vscode?
and yet - nano / joe / mcedit do not roll at all?

P
pfg21, 2017-10-19
@pfg21

Everything is possible in Linux, you just need to know how to do it.
Create something like such a script.

ssh [email protected] cat $1  > /tmp/temp_edit
(nano|vim|mcedit) /tmp/temp_edit
cat /tmp/temp_edit | ssh [email protected] tee $1
rm /tmp/temp_edit

run with the full path parameter of the file on the remote system.
substitute your favorite editor
ps: did not check for performance, just thinking out loud

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question