Comments (6)
That's a really interesting feature, I think I can do something for that next week 😉
from yanky.nvim.
Thanks for the feedback!!!
I've made some updates.
I've changed <Plug>
names, I think you'll I've something really close to vim-unimpaired
:
vim.keymap.set("n", "]p", "<Plug>(YankyPutIndentAfterLinewise)", {})
vim.keymap.set("n", "[p", "<Plug>(YankyPutIndentBeforeLinewise)", {})
vim.keymap.set("n", "]P", "<Plug>(YankyPutIndentAfterLinewise)", {})
vim.keymap.set("n", "[P", "<Plug>(YankyPutIndentBeforeLinewise)", {})
vim.keymap.set("n", ">p", "<Plug>(YankyPutIndentAfterShiftRight)", {})
vim.keymap.set("n", "<p", "<Plug>(YankyPutIndentAfterShiftLeft)", {})
vim.keymap.set("n", ">P", "<Plug>(YankyPutIndentBeforeShiftRight)", {})
vim.keymap.set("n", "<P", "<Plug>(YankyPutIndentBeforeShiftLeft)", {})
vim.keymap.set("n", "=p", "<Plug>(YankyPutAfterFilter)", {})
vim.keymap.set("n", "=P", "<Plug>(YankyPutBeforeFilter)", {})
from yanky.nvim.
Just tested, and all seems to be in working order. Thanks for the quick implementation!
from yanky.nvim.
Hi @drinkitup777 !
I've made something here: #33 if you want to try before I merge.
Awesome feature, I don't know how I did before :D
from yanky.nvim.
It's pasting on the right line, but I don't think the indenting is acting right. If you do a character-wise yank, it always acts as if it's coming from indent level 0. For example, if you yank a word from a line and >p
, it will be put on the next line with indent 1, no matter the indent level of the line it was yanked from. It's the same for [p
and ]p
... etc.
Side: congrats on joining the [p
club 🤓
from yanky.nvim.
Could you increase the visibility of this by suggesting those maps in the README? I think people who are used to vim-unimpaired expect this to "just work", and not to have to search the issues for 'unimpaired' - which I only did because I thought there was a bug similar to #19
from yanky.nvim.
Related Issues (20)
- Feature Request: Telescope action to both put item and set register HOT 3
- Doesn't work with Telescope HOT 9
- Feature Request: Ability to set default telescope action HOT 1
- Selection of a history in telescope always ends in pasting the latest history record HOT 5
- Feature request: Replace with Yanky HOT 1
- Text object errors HOT 2
- Bug: Latest commit breaks last-paste-textobj HOT 6
- Error executing lua callback attempt to index field 'yanky_textobj' (a nil value) HOT 2
- Wrong position of special mark after paste HOT 1
- Update doc for v2
- Question: is there lua API to get last yank/copy text, and get all the yank/copy history? HOT 2
- [Error] Occurs with `cancel_event = 'move'` When Pasting Twice HOT 2
- [Enhancement] Ignore Replaced Text HOT 7
- Wrong behavior of telescope.mapping.put actions HOT 5
- Could you increase the visibility of this by suggesting those maps in the README?
- Can't ignore primary register "* HOT 3
- Preserve cursor position on yank doesn't work HOT 2
- YankyPutAfter vs YankyGPutAfter HOT 1
- nitpick about naming and doc around YankyPutBefore/After HOT 1
- Implements `zy`
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 yanky.nvim.