Comments (7)
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.
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.
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.
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.
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
from nvimdots.
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.
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)
- Update catppuccin version (Huge performance issue on nightly) HOT 3
- How to modify keymap for Vim plugin HOT 13
- How to configure plugins for neovim to support Rust-DAP and smart tips for variable types in Rust HOT 5
- maybe load_extension fzf bug HOT 2
- Can't switch open-tabs HOT 3
- How to setup the python environment? HOT 32
- treesitter parser [swift] having issue when lazy-loading ts-related plugins HOT 11
- How to (re)install nvimdots HOT 5
- In Inerst mode use <capslock> mapping <Esc> not work HOT 6
- How to custom user config for nvim-cmp mapping HOT 5
- replace `vim.tbl_islist()` with `vim.islist()` after `NVIM v0.10.0-dev-2560` HOT 3
- golang code hints default selected location is incorrect
- Color scheme HOT 2
- Sluggish WSL clipboard communication HOT 2
- skip lines when executing multiple macro operations HOT 9
- UI FIX HOT 3
- [migration] Nvim 0.10 Support HOT 2
- `<CR>` triggers autocompl instead of line break HOT 1
- Allow format timeouts to be set individually HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvimdots.