comparison runtime/doc/gui.txt @ 19657:da791e5c0139 v8.2.0385

patch 8.2.0385: menu functionality insufficiently tested Commit: https://github.com/vim/vim/commit/0eabd4dc8ff50658f0ea0e92c7918a42242f6b80 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 15 16:13:53 2020 +0100 patch 8.2.0385: menu functionality insufficiently tested Problem: Menu functionality insufficiently tested. Solution: Add tests. Add menu_info(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5760)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Mar 2020 16:15:04 +0100
parents 22f0dda71638
children bceeded72898
comparison
equal deleted inserted replaced
19656:df9b03a56543 19657:da791e5c0139
576 key mapping (|:tmap|). This is because |:tmenu| is already used for defining 576 key mapping (|:tmap|). This is because |:tmenu| is already used for defining
577 tooltips for menus. See |terminal-typing|. 577 tooltips for menus. See |terminal-typing|.
578 578
579 Special characters in a menu name: 579 Special characters in a menu name:
580 580
581 *menu-shortcut*
581 & The next character is the shortcut key. Make sure each 582 & The next character is the shortcut key. Make sure each
582 shortcut key is only used once in a (sub)menu. If you want to 583 shortcut key is only used once in a (sub)menu. If you want to
583 insert a literal "&" in the menu name use "&&". 584 insert a literal "&" in the menu name use "&&".
585 *menu-text*
584 <Tab> Separates the menu name from right-aligned text. This can be 586 <Tab> Separates the menu name from right-aligned text. This can be
585 used to show the equivalent typed command. The text "<Tab>" 587 used to show the equivalent typed command. The text "<Tab>"
586 can be used here for convenience. If you are using a real 588 can be used here for convenience. If you are using a real
587 tab, don't forget to put a backslash before it! 589 tab, don't forget to put a backslash before it!
588 Example: > 590 Example: >
952 954
953 (the rhs is in <> notation, you can copy/paste this text to try out the 955 (the rhs is in <> notation, you can copy/paste this text to try out the
954 mappings, or put these lines in your gvimrc; "<C-R>" is CTRL-R, "<CR>" is 956 mappings, or put these lines in your gvimrc; "<C-R>" is CTRL-R, "<CR>" is
955 the <CR> key. |<>|) 957 the <CR> key. |<>|)
956 958
957 959 *tooltips* *menu-tips*
958 5.8 Tooltips & Menu tips 960 5.8 Tooltips & Menu tips
959 961
960 See section |42.4| in the user manual. 962 See section |42.4| in the user manual.
961 963
962 *:tmenu* *:tm* 964 *:tmenu* *:tm*