On 6 Nov 2020, at 8:30, Peace Keeper wrote:
Too bad, that I can't use bbedit from a remote tmux session to initiate an edit of a local file on a remote server. Seems I still have to initiate that from macOS
It's not the actual editor, but rbbedit will help with editing files using BBEdit, that you have on remote servers.
https://github.com/cngarrison/rbbedit
Edit local (server) files on remote (users) workstation using BBEdit.
-cng
--
Charlie Garrison <cha...@garrison.com.au>
Garrison Computer Services <http://www.garrison.com.au>
PO Box 380
Tumbarumba NSW 2653 Australia
Good morning,
I didn't really follow your use-case (is it just issue with root-owned files). rbbedit is effectively a wrapper for ssh/scp and bbedit commands.
You talk about both a "simple one-liner" and "change of workflow" in one paragraph. Yes, rbbedit is more than one line underneath, so that it can become that 'one-liner' for different people on different servers. For me, a manual one-liner would have to be adapted for many of the different servers I use, but rbbedit is consistent across all of them.
I did change my workflow for rbbedit, but overall it's a simpler workflow.
For root-owned files, you should be able to use the scp 'copy method' with rbbedit, but the --wait flag is enforced so not best for all cases. Otherwise, I've been known to create a temp copy with changed user ownership, and use rbbedit to edit the temp file. I’m not recommending that though since it's not a safe thing to do in many cases. Safely editing root-owned files is a "big topic".
So if your issue is editing root-owned files without allowing root access, then rbbedit is not the tool you seek. If you find a "safe" solution, I would be keen to hear about it and maybe add to rbbedit.
-cng
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/4ae46a8d-38c4-4388-8d78-76963208c6bfn%40googlegroups.com.
Good morning,
On 7 Nov 2020, at 3:24, Steve deRosier wrote:
I probably would've used rbbedit if it had existed when I started
doing this, but the above works well for me and I've never had a
reason to change my method.
Yep, that's what rbbedit does (minus new file creation; I'll have to add that), but just abstracts away many of the finer details so it's easy to install and use on lots of servers.
I'm curious, how long have you been using your scripts? rbbedit is still young compared to BBEdit, but it's far from being an infant:
Initial commit
cngarrison committed on 3 Sep 2014
Good morning,
On 9 Nov 2020, at 11:48, Steve deRosier wrote:
On Sun, Nov 8, 2020 at 3:06 PM Charlie Garrison
charlie...@garrison.com.au wrote:I'm curious, how long have you been using your scripts? rbbedit is still young compared to BBEdit, but it's far from being an infant:
Honestly, I can't even remember. I've been using BBEdit in some form
for > 20 years. Best guess, I started using the .bashrc function and
...
That all sounds VERY familiar. :-D
rbbedit even has support for fuse (via ExpanDrive) since that was my primary way to access servers for a while. I use sftp in BBEdit "all the time" now, but I trigger it via rbbedit (which of course uses bbedit to do the work).
Primary development use case: embedded Linux, so lots of work on Linux
drivers (C, DTS), build systems like OpenWRT and Buildroot (make and
CMake files), WiFi firmware, Python utilities and frameworks. I tend
to dislike IDEs as embedded doesn't lend itself well to that model.
I do Perl, every day. I'm not a fast coder, but sometimes work mates are impressed with my turn-around time. I tell them it's due to use of good tools, and I ALWAYS use that as opportunity to talk about BBEdit. ;-)