Skip to content

Implement keytrans()#11114

Closed
zeertzjq wants to merge 1 commit intovim:masterfrom
zeertzjq:keytrans
Closed

Implement keytrans()#11114
zeertzjq wants to merge 1 commit intovim:masterfrom
zeertzjq:keytrans

Conversation

@zeertzjq
Copy link
Member

No description provided.

@zeertzjq
Copy link
Member Author

Done code and tests. TODO: documentation.

@zeertzjq
Copy link
Member Author

TODO: documentation.

Done.

@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Merging #11114 (81eaf8c) into master (cf0995d) will increase coverage by 0.53%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##           master   #11114      +/-   ##
==========================================
+ Coverage   81.24%   81.78%   +0.53%     
==========================================
  Files         162      162              
  Lines      188216   188262      +46     
  Branches    42801    42821      +20     
==========================================
+ Hits       152923   153962    +1039     
+ Misses      22867    21760    -1107     
- Partials    12426    12540     +114     
Flag Coverage Δ
huge-clang-none 82.69% <95.23%> (-0.01%) ⬇️
huge-gcc-none 54.56% <55.00%> (-0.37%) ⬇️
huge-gcc-testgui ?
huge-gcc-unittests 0.29% <0.00%> (-0.01%) ⬇️
linux 82.38% <95.23%> (-0.11%) ⬇️
mingw-x64-HUGE 76.45% <94.73%> (+<0.01%) ⬆️
mingw-x86-HUGE 77.33% <94.73%> (?)
windows 78.12% <94.73%> (+1.66%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/option.c 87.81% <50.00%> (+0.12%) ⬆️
src/evalfunc.c 90.79% <100.00%> (-0.04%) ⬇️
src/map.c 88.43% <100.00%> (ø)
src/menu.c 83.01% <100.00%> (+1.54%) ⬆️
src/message.c 78.69% <100.00%> (-0.85%) ⬇️
src/sound.c 64.00% <0.00%> (-1.72%) ⬇️
src/gui_gtk_x11.c 51.11% <0.00%> (-0.52%) ⬇️
src/buffer.c 86.47% <0.00%> (-0.27%) ⬇️
src/optionstr.c 91.07% <0.00%> (-0.27%) ⬇️
... and 43 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@brammool brammool closed this in cdc8393 Sep 12, 2022
@zeertzjq zeertzjq deleted the keytrans branch September 12, 2022 12:43
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Sep 12, 2022
… a string

Problem:    There is no easy way to translate a string with a key code into a
            readable string.
Solution:   Add the keytrans() function. (closes vim/vim#11114)
vim/vim@cdc8393
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Sep 12, 2022
… a string

Problem:    There is no easy way to translate a string with a key code into a
            readable string.
Solution:   Add the keytrans() function. (closes vim/vim#11114)
vim/vim@cdc8393
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Sep 12, 2022
… a string

Problem:    There is no easy way to translate a string with a key code into a
            readable string.
Solution:   Add the keytrans() function. (closes vim/vim#11114)
vim/vim@cdc8393
zeertzjq added a commit to neovim/neovim that referenced this pull request Sep 12, 2022
… a string (#20168)

Problem:    There is no easy way to translate a string with a key code into a
            readable string.
Solution:   Add the keytrans() function. (closes vim/vim#11114)
vim/vim@cdc8393

vim-patch:7b2d87220c6c

Add missing part of patch
vim/vim@7b2d872
@vds2212
Copy link

vds2212 commented Aug 28, 2023

On Windows it seems that it doesn't work perfectly:
<C-b> seems to be represented by <9b><fc>^DB where "<*C-b>" is <80><fc>^DB

keytrans('<9b><fc>^DB') returns <9b><fc><C-D>B
keytrans('<80><fc>^DB') returns <C-B>

Remark: "\<*C-b>" and "\<*C-B>" are the same which seems to be odd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants