-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textobject for mini.indentscope which does not include blank lines #1233
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Thanks for the suggestion! If I understood correctly, the suggestion is to have an "inner scope" textobject which does not include blank lines. This is out of scope for 'mini.indentscope' as I don't think this is behavior is that useful: in most cases it is similar to Closing as not planned. |
having :lua print(vim.inspect(MiniIndentscope.config))
{
draw = {
animation = <function 1>,
delay = 100,
priority = 2
},
mappings = {
goto_bottom = "<C-j>",
goto_top = "<C-k>",
object_scope = "ii",
object_scope_with_border = "ai"
},
options = {
border = "none",
indent_at_cursor = true,
try_as_border = false
},
symbol = "▏"
} cursor on mappings = {
-- Textobjects
object_scope = 'ii',
object_scope_with_border = 'ai',
-- Motions (jump to respective border line; if not present - body line)
goto_top = ',K',
goto_bottom = ',J',
}, if I currently - selects mappings = {
[ -- Textobjects
object_scope = 'ii',
object_scope_with_border = 'ai',
-- Motions (jump to respective border line; if not present - body line)
goto_top = ',K',
goto_bottom = ',J',]
}, thus, there is no way to accomplish About
|
Yes, this is what was meant by "out of scope for 'mini.indentscope". I don't think this particular textobject is useful enough to be worth adding extra complexity to 'mini.indentscope' module.
Yes, that's why it was "in most cases it is similar to |
:( at least two people search for it I used often :( |
Contributing guidelines
Module(s)
mini.indentscope
Description
I lack
ii
from https://github.com/kana/vim-textobj-indent(N.B.
ia
from https://github.com/kana/vim-textobj-indent isai
frommini.indentscope
)in
cursor on
bar
should selectin
cursor on
bar
should selecttoo
in
cursor on
bar
should selecttoo
having
cursor on
[g]oto_top
if I
vii
currently - selects
the
vii
from https://github.com/kana/vim-textobj-indent would select onlyThe text was updated successfully, but these errors were encountered: