Giter Site home page Giter Site logo

vscode-accessible-buffer-copy's Introduction

TL;DR

Fix strange behavior when copy paste from terminal accessible buffer mode by replacing non-breaking spaces with regular ones.

Summary

This extension provides facade-like functionality for the convenience of working with accessible buffer terminal.

By some reasons when you enter an accessible buffer mode for terminal, all whitespaces are replaced with non-breaking ones, so if you try to copy some command from there and paste it to the terminal the command will fail.

I believe that there are objective reasons for doing this. However, it bothers a bit, if you just want to copy and paste some command from a man page and etc. This extension makes everything copied from accessible buffer mode valid for insertion.

As I said before extension provides facade-like functionality. By which I mean that you can achieve almost the same behavior with other extensions that provide replacement rules for the clipboard. However, I wanted it to be a separate extension as it is easier to fix a specific problem with specific extension.

Quick start

  1. Install the extension
  2. Enable the extension
  3. Set a new shortcut for the key you use for copying with the following when expression terminalAccessibleBufferFocus

Windows

    {
        "key": "ctrl+c",
        "command": "abcopy.clipboardCopyAction",
        "when": "terminalAccessibleBufferFocus"
    }

MacOS

    {
        "key": "cmd+c",
        "command": "abcopy.clipboardCopyAction",
        "when": "terminalAccessibleBufferFocus"
    }

Linux

    {
        "key": "ctrl+shift+c",
        "command": "abcopy.clipboardCopyAction",
        "when": "terminalAccessibleBufferFocus"
    }

Now you've got a custom copy method, which is activated only when you are in the terminal accessible buffer mode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.