Skip to content

ultimatile/remote-edit.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-edit.nvim

Edit remote files via SSH with fzf-lua integration.

Requirements

  • Neovim >= 0.10
  • fzf-lua
  • SSH configured in ~/.ssh/config

Installation

lazy.nvim

return {
  "ultimatile/remote-edit.nvim",
  dependencies = { "ibhagwan/fzf-lua" },
  opts = {},
}

Usage

:Redit           " Select host from ~/.ssh/config
:Redit hostname  " Connect to specified host directly

Select a host from your SSH config, then browse and edit files.

Keymaps (in fzf picker)

Key Action
<C-h> (default) Show/hide dotfiles

Dotfiles are hidden by default. Press <C-h> in the fzf picker to toggle visibility.

Configuration

opts = {
  keymaps = {
    toggle_hidden = "<C-h>",  -- change dotfile toggle key
  },
}

Troubleshooting

If you see scp: Received message too long or netrw: shell signalled an error, your remote shell may be producing output in non-interactive sessions.

Try adding this to the top of your remote ~/.bashrc:

[[ $- != *i* ]] && return

This ensures .bashrc exits early for non-interactive sessions (like scp/sftp).

License

Apache-2.0

Acknowledgments

Project structure based on nvim-plugin-template.

About

Edit remote files via SSH with fzf-lua integration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published