Coder Social home page Coder Social logo

vscode-copy-from-terminal's People

Contributors

babakks avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

cutewaterbeary

vscode-copy-from-terminal's Issues

Some echo or error when I open the terminal

Here what I see when I open a new terminal.

root@vps:~/mybatch/snippets# export COPY_TO_VSCODE_TEMP_DIR="/root/.vscode-server/extensions/babakks.vscode-copy-from-terminal-0.0.7/temp/" && export EXTENSION_INSTANCE_ID="aa47" && _get_temp_file() { dt="$(date --iso-8601=ns)" && tempfname="$dt-$EXTENSION_INSTANCE_ID.tmp" && echo "$COPY_TO_VSCODE_TEMP_DIR/$tempfname"; } && cp2code() { cat > "$(_get_temp_file)"; } && tee2code() { tee "$(_get_temp_file)"; } root@vps:~/mybatch/snippets#

cp2code works, but would be nice clean up it

Visual Studio Code Version 1.70.2

Let me know if you need more details

Errors from Date command in mac

I keep getting errors on my mac using

_get_temp_file() {
dt="$(date --iso-8601=ns)"
tempfname="$dt-$EXTENSION_INSTANCE_ID.tmp"
echo "$COPY_TO_VSCODE_TEMP_DIR/$tempfname"
}

I changed the dt line to this:

dt="$(date +%s)"

cp2code from inside a bash

Maybe it's not a real issue but let me explain.

I created a little bash to show your what I mean:
code test_cp2code.sh

`#!/bin/sh
ps -aux | cp2code

chmod +x
./test_cp2code.sh
line 2: cp2code: command not found
`
How I can use cp2code inside a bash script?

thx

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.