nvim-osc52: copy text from remote SSH sessions with OSC52

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • nvim-osc52

    A Neovim plugin to copy text through SSH with OSC52

  • Thanks for your swift reply! I've first tried the method referred to in https://github.com/ojroques/nvim-osc52/issues/1 to no avail. Now I'm using it the way you have configured it in your personal config and it doesn't work as well 🤷‍♂ This is the config: lua use({ 'ojroques/nvim-osc52', config = function() require('osc52').setup() local copy = function(lines, _) require('osc52').copy(table.concat(lines, '\n')) end local paste = function() return { vim.fn.split(vim.fn.getreg(''), '\n'), vim.fn.getregtype('') } end vim.g.clipboard = { name = 'osc52', copy = { ['+'] = copy, ['*'] = copy }, paste = { ['+'] = paste, ['*'] = paste }, } vim.api.nvim_create_autocmd('TextYankPost', { callback = function() vim.highlight.on_yank() end }) end }) Tmux is configured with set-option -s set-clipboard on Terminal is WezTerm which should be supported.

  • vim-oscyank

    A Vim plugin to copy text through SSH with OSC52

  • The plugin itself is a rewrite in Lua of another plugin of mine, vim-oscyank with a clean-up of the code logic (and it allows me to remove one more Vimscript plugin from my config :p)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • dotfiles

    My config files (by ojroques)

  • The plugin itself is a rewrite in Lua of another plugin of mine, vim-oscyank with a clean-up of the code logic (and it allows me to remove one more Vimscript plugin from my config :p)

  • Windows Terminal

    The new Windows Terminal and the original Windows console host, all in the same place!

  • You mean you copy text outside of Neovim and you want to paste it with p inside Neovim with the help of the plugin? The plugin does not support that, because most terminal emulators also don't: letting apps read the clipboard whenever they want with OSC52 can be a security issue. For instance for windows terminal: https://github.com/microsoft/terminal/issues/9479.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts