Home

Awesome

About

Defx-sftp is a defx source for sftp.

Features

Requirements

For basic requirements, please follow the instruction of defx.nvim.
Additionally, defx-sftp requires paramiko.
You can install it with pip:

pip3 install --user paramiko

Usage

For now, defx-sftp only supports RSA authentication. Private key path can be specified with g:defx_sftp#key_path (default is ~/.ssh/id_rsa).

Remote files can be accessed like this.

Defx sftp://[user@]hostname[:port][/path]

Columns for sftp files is supported (sftp_mark, sftp_time, sftp_time).
If you want to show the same columns as defx's one, you can configure like this and open with Defx sftp://user@hostname -buffer-name=sftp.

call defx#custom#option('sftp', {
      \ 'columns': 'sftp_mark:indent:icon:filename:type:sftp_time:sftp_size',
      \ })