-
-
Couldn't load subscription status.
- Fork 5.9k
Add tmap for terminal-job mode #2073
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
Conversation
src/terminal.c
Outdated
| int c; | ||
|
|
||
| ++no_mapping; | ||
| int prev_State = State; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] prefer save_State
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| func Test_terminal_tmap() | ||
| " TODO: Find an equivalent for win32 | ||
| if !has('unix') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do it after merge. Thanks
|
jakalope wrote:
This changeset adds terminal-job mode key mapping using commands
`tmap`, `tnoremap`, `tunmap`, etc. Docs are updated and a test is
added.
Thanks for working on this. Can you please put your full name on your
github account?
…--
I AM THANKFUL...
...for a lawn that needs mowing, windows that need cleaning
and gutters that need fixing because it means I have a home.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
|
@brammool Done! |
|
Several of the build configurations are failing because (I think) the systems they're running on don't recognize the I'm open to suggestions on other ways to test this feature. |
|
I'm not sure but can you try it with |
Codecov Report
@@ Coverage Diff @@
## master #2073 +/- ##
==========================================
- Coverage 73.76% 73.75% -0.01%
==========================================
Files 90 90
Lines 130039 130044 +5
Branches 28922 28921 -1
==========================================
- Hits 95928 95920 -8
+ Misses 34111 34104 -7
- Partials 0 20 +20
Continue to review full report at Codecov.
|
|
@mattn That seems to have worked, thanks! |
|
@brammool I don't see any clear way to add tests that would (a) make sense in the context of this PR and (b) improve the test coverage. Please advise. |
Problem: Cannot specify mappings for the terminal window.
Solution: Add the :tmap command and associated code. (Jacob Askeland,
closes vim#2073)
This changeset adds terminal-job mode key mapping using commands
tmap,tnoremap,tunmap, etc. Docs are updated and a test is added.