Skip to content

what is the best open-source text editor that also has the capabilty for syncing with a server?

I used to use Sumblime Text with Sublime SFTP package but have switched over to using Atom in an effort to try and use open-source where I can but the add-ons that come up on a google search result seem to all be unmaintained:

remote-ftp | Repo
remote-sync-pro | Repo
atom-sftp-sync | Repo
remote-sync | Repo
atom package sync | Repo
atom-sync | Repo

I tried using remote-ftp but it seems unable to ignore folders which is pretty crucial for my needs

2 points20 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
bf94wk

Author

22
posts
41
comments
5
media
View profile

20 comments

sshfs? Using whatever editor you want?

10 points

that a neat program but not exactly what I am looking for. sshfs seems to mount the server to my computer so that I can access the files with an editor? But what I want is the ability to spin up a new server, use the add-ons to sync to my local files to that server, test them on the server and then be able to destroy that server without having that impact the files that I am working on. and git wouldnt help in my case cause there's a whole bunch of files in the .gitignore that are important that seem to be files that would be lost if I destroy the server.

1 points

Why is git not an option? You can stick to whatever editor you like whilst keeping version control

6 points

I like to edit the files on my local computer but test them on a server for this project. If I use git to sync, that will create alot of commits in its history which will be bad code as I test things out.

1 points

You could use throwaway branches for that use case. Merge relevant commits into dev/master at the proper point in time. Plus, git hooks are an option.

1 points

"Best editor" is really a matter of taste. I would try to avoid such a phrasing, but for many power users vim (or neovim) is the greatest thing ever written for editing, because it doesn't require a mouse and you will always keep your fingers on the keyboard's home row (ASDF JKL;).

vim scp://you@yourserver//path/to/directory/file

assuming you already have ssh installed and configured

1 points

i would rather not use a command-line based editor for this.

1 points

I think I know what the problem is, but I don't think it's being a command-line program or not. If it was, you could just install gvim, which is exactly the same as vim - just not in a terminal window, but instead in a GTK3 window with menu bar and icons.

It's also not a problem of features, because it is a very expandable editor with a lot of plugins available to become an IDE. The actual problem is probably that the learning curve for the operation of vim is so much harder than any other editor, just from being a completely different paradigm. It is a time investment that I wouldn't recommend for most people to commit. Time consumption wise it's as big as switching from Windows to Linux. It's definitely not for everyone, and very polarizing. Don't try it, if you don't have spare time. But hey your question was "what is the best editor" so it sounded quite universal, sorry xD

3 points

Why use an editor for file sync?

Have you had a look at rclone?

1 points

that seems like a pretty cool thing and I might try it but it is missing something that I really want to have which is the ability to sync a folder but also use regex to specify certain subfiles/subfolders to skip

1 points

use Vim (or neovim) with some plugin
or map key to write and exec rsync command

1 points

I think something like this could be done with notepadqq, I don't know if its possible out of the box though.

1 points

I use Geany and Nextcloud. Obviously it syncs only when i save in the Nextcloud folder, but thay's all i need.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.