ATAC
ATAC copied to clipboard
Feature Request: Support for different modes for vim bindings
Being a vim user I was using rest.nvim, it covers my day to day usage except for few cases like file upload. So was always looking for a lightweight alternative of Postman. Thank you so much for a lightweight client.
I tried using the vim bindings provided in the repo, it unfortunately didn't work as expected, it usually causes conflicts when editing values. For example the default binding used to display help is H
, Now when editing the URL, if I were to type variable name HOST
, I am not able to do so because the moment I type H
it opens up the help menu.
https://github.com/Julien-cpsn/ATAC/assets/14184045/65ed524b-1feb-45b3-80c7-41649ecd5743
As a workaround I can remap the help binding but that would cause conflict with some other key which I will need to remap.
So I am suggesting to implement vim modes like NORMAL
and INSERT
, where in INSERT
mode no keys will trigger the binding action and ESC key can change the mode back to NORMAL.
Similar implementation can be found in this terminal file manager yazi
Sample clip from their demo:
https://github.com/Julien-cpsn/ATAC/assets/14184045/941253bb-511d-4d1c-9927-795fad6aa9f6
OR
We can add an option to open the content in preferred editor using $EDITOR where user can edit the content and edited content can be conveyed back to ATAC, this will provide more flexibility and user can utilise the syntax highlighting of the editor as well.