Giter VIP home page Giter VIP logo

Comments (7)

CharlesChiuGit avatar CharlesChiuGit commented on August 22, 2024 1

ahh got it, but i dont think it's a bug. everyone use their computer differently.

I think there may be a conflict with the system's paste shortcut keys?

ys, i think it is.

But can I make it work properly without modifying the shortcut keys?

no, u have to modify it if u want to use it.

from nvimdots.

CharlesChiuGit avatar CharlesChiuGit commented on August 22, 2024 1

it's not the case on macos and linux.

u need to consider 3 levels of keymaps: system level, terminal level, other nvim keymaps
so this is really hard to balance between between OSs.

u can suggest a better keymap u think is suitable or make a pr.

from nvimdots.

Penguin-SAMA avatar Penguin-SAMA commented on August 22, 2024 1

Oh I see, on MacOS the shortcut for pasting is <Command-V> instead of <control-V>.

That is indeed the influence of Windows Terminal.

I think <C-V> is a good keymap so it doesn't need to be changed, so I removed the <Ctrl+V> action in windows Terminal.

thanks for your help, and it's bad to use Windows :(

from nvimdots.

CharlesChiuGit avatar CharlesChiuGit commented on August 22, 2024

why would u want to paste in a file tree?

i dont think it's doable to paste in nvimtree buffer, i think this is normal.

from nvimdots.

Penguin-SAMA avatar Penguin-SAMA commented on August 22, 2024

no, i want to use <C-V> to open a file in split buffer, because I found out that this is the default operation of nvimtree

image

from nvimdots.

Penguin-SAMA avatar Penguin-SAMA commented on August 22, 2024

But I think the shortcut for "paste" should be <C-v> on most machines these days. If this is a mechanism and not a bug, then this default shortcut should be unusable for most people?
Or is this just a phenomenon unique to Windows Terminal?

from nvimdots.

Jint-lzxy avatar Jint-lzxy commented on August 22, 2024

I think the main issue here boils down to the fact that the terminal holds all the cards when it comes to what gets sent to the TUI app. It's the "gatekeeper", catching all your keystrokes and deciding what to do with them - whether to handle them itself or pass them along to the TUI app. AFAIK most terminals do let you tweak which keys they handle internally and which ones they pass on. Checking out Windows Terminal's docs might shed some light on this.

But I think the shortcut for "paste" should be <C-v> on most machines these days. If this is a mechanism and not a bug, then this default shortcut should be unusable for most people
Or is this just a phenomenon unique to Windows Terminal?

I gotta admit this one is kinda user-dependent. There are still tons of platforms or emulators that either don't use <C-v> for pasting or won't mess with (or hijack) your input. Frankly the best advice we can offer is to get to know your terminal better if you really want <C-v> to work in NvimTree, just like what @CharlesChiuGit suggested.

from nvimdots.

Related Issues (20)

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.