-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Give users a way to know which vim mode is on currently pragmatically #4484
Comments
Hey @nikitavoloboev – what are you using to automate this? In the keyboard bindings file we have a notion of mode (it's not well documented yet, but see here: #5337). We don't yet have a way to do a "remap" in the vim style (I assume you do something like |
So related to this, I really need this supported by Zed: Basically if above is supported and I can get the current line number and file path. I can then under the hood, press that keybind and trigger a CLI that would run some transformation on the current file/line I am working on. For example for above case, it will know that if I am at end of line and the file is a rust file, add I can't do any of that if I can't get the information of current file open and current line active from Zed. Hope my use case is clear and it can be added. |
Makes sense, thanks for explaining!
…On Fri, Sep 15, 2023 at 3:47 AM, Nikita ***@***.***> wrote:
Hey @nikitavoloboev <https://github.com/nikitavoloboev> – what are you
using to automate this?
So related to this, I really need this supported by Zed:
zed-industries/zed#4474 <#4474>
Basically if above is supported and I can get the current line number and
file path.
I can then under the hood, press that keybind and trigger a CLI that would
run some transformation on the current file/line I am working on.
For example for above case, it will know that if I am at end of line and
the file is a rust file, add ; to end of line. If its a rust file but I
am not at end of line, then add ; to end of line instead. If neither of
those cases is true, do something else.
I can't do any of that if I can't get the information of current file open
and current line active from Zed.
Hope my use case is clear and it can be added. [image: ♥]️
—
Reply to this email directly, view it on GitHub
<#4484>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAXAQGU4EJMFVZ6GBFTCIDX2QP27ANCNFSM6AAAAAA4V7WAYI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Check for existing issues
Describe the feature
I write quite a bit of Rust now as I imagine @zed-industries does too.
I want to build this use case:
When in normal mode and a line is selected like so:
I want to add
;
to the end of the line.If however I am in insert mode, I want to just insert
;
.To achieve this, I need to know what vim mode I am currently on. Give users a way to know it please.
Thank you.
The text was updated successfully, but these errors were encountered: