Comments (9)
Only use
spider
in normal mode
I want to use spider in the other modes as well though ;)
I do like nvim-spider
^
when I'm here I want w
to jump to the beginning of spider
and dw
delete either nvim
or nvim-
but not nvim-spider
.
from nvim-spider.
ah, good call. Fixed in latest release
from nvim-spider.
Could one of you open a new issue and properly outline expected and actual behavior? Then I can look into it
from nvim-spider.
db
in this case will only delete o
too, while normal db
will delete do
.
from nvim-spider.
vim.keymap.set({"n"}, "w", function() require("spider").motion("w") end, { desc = "Spider-w" })
vim.keymap.set({"n"}, "e", function() require("spider").motion("e") end, { desc = "Spider-e" })
vim.keymap.set({"n"}, "b", function() require("spider").motion("b") end, { desc = "Spider-b" })
vim.keymap.set({"n"}, "ge", function() require("spider").motion("ge") end, { desc = "Spider-ge" })
Only use spider
in normal mode
from nvim-spider.
Only use spider in normal mode
This happens in normal mode.
from nvim-spider.
Hello, not sure what the etiquette is for commenting on closed issues, but I'm not sure this is fixed yet, or at least, it doesn't work as expected for me with brackets:
word) is
cursor on w of word. Press dw
or cw
and you get:
is
I would definitely assume that the ) should not be deleted in this case.
Thanks!
from nvim-spider.
@fakeharxy I think in that case, it works as expected. w
goes to the beginning of the next word, and in operator pending deletes up to that. If you want to preserve the )
, you should use e
, since it only deletes to the end of the word.
Both is also consistent with what happens with the original e
and w
motions from vim.
from nvim-spider.
Hello, not sure what the etiquette is for commenting on closed issues, but I'm not sure this is fixed yet, or at least, it doesn't work as expected for me with brackets:
word) is
cursor on w of word. Press
dw
orcw
and you get:
is
@fakeharxy I stumbled over the same issue. I was confused since this deviates from the default behaviour of (n)vim for dw
and cw
.
require("spider").setup({
skipInsignificantPunctuation = false
})
does the trick for cw
and dw
, while the "normal" movement behaves differently then.
@chrisgrieser Probably it makes sense to have the skipInsignificantPunctuation
option on the motion function (and not (just) as a global configuration value). Then it would be possible to have different motion behavior on the modes n
, o
, and x
.
from nvim-spider.
Related Issues (20)
- Feature Request: Allow option for empty lines to be a significant punctuation (especially for change) HOT 1
- [Bug]: Dot repeat is locking up the editor HOT 6
- [deleted] HOT 2
- Feature Request: skipInsignificantPunctuation only in normal mode? HOT 4
- Feature Request: Add W, (g)E and B HOT 2
- Feature Request: c-w (ctrl-w) should work HOT 2
- Feature Request: Word motion on camel case with capitalized acronyms HOT 3
- Feature Request: Add option to use default keymaps HOT 2
- Feature Request: add option to disable subwords HOT 5
- Feature Request: support `wildfire.nvim` HOT 2
- Feature Request: Add instructions for adding keymaps to lazy config HOT 2
- [Bug]: Bugs when camelCase names have numbers in them HOT 1
- [Bug]: Cannot bind to e.g. "<leader>w" HOT 2
- [Bug]: numbers in hex values are not ignored HOT 2
- Feature Request: Support subword delete in insert mode like CTRL-W HOT 1
- Feature Request: Pull in .editorconfig from your template repository HOT 1
- Feature Request/Bug? - Strange behavior on the last word of lines HOT 3
- [Bug]: Small inconsistency with cw: single letter words
- [Question] Why ignore iskeyword? HOT 2
- Feature Request: Add WORD motions HOT 3
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 nvim-spider.