aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
Commit message (Collapse)AuthorAge
...
* api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* vim-patch:8.1.1264: crash when closing window from WinBar clickJan Edmund Lazo2020-04-26
| | | | | | Problem: Crash when closing window from WinBar click. (Ben Jackson) Solution: Check that window pointer is still valid. (closes vim/vim#4337) https://github.com/vim/vim/commit/d2fad67e3eb71f48d23f283ef8e7b7ddf4ee180f
* vim-patch:8.0.1139: using window toolbar changes stateJan Edmund Lazo2020-04-26
| | | | | | Problem: Using window toolbar changes state. Solution: Always execute window toolbar actions in Normal mode. https://github.com/vim/vim/commit/a21a6a9ade7bec3a07992d4d900d4ce82eeb8a29
* vim-patch:8.0.1142: window toolbar menu gets a tear-off itemJan Edmund Lazo2020-04-26
| | | | | | Problem: Window toolbar menu gets a tear-off item. Solution: Recognize the window toolbar. https://github.com/vim/vim/commit/378daf87d380b9f3c4f822786dfbfdcad9ca2db9
* vim-patch:8.0.1123: cannot define a toolbar for a windowJan Edmund Lazo2020-04-26
| | | | | | | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar. https://github.com/vim/vim/commit/1b9645de3c05f37b5c30e78f999351b0cf486ade "WinBar" code in "screen.c" was not ported. Fix https://github.com/neovim/neovim/issues/11513#issuecomment-562012827
* vim-patch:8.1.1201: output of :command is hard to readJan Edmund Lazo2020-02-16
| | | | | | | Problem: Output of :command is hard to read. Solution: Make some columns wider, some narrower. Truncate the command when listing all. https://github.com/vim/vim/commit/725310d89e1ba268bf410472b7de054c6c260161
* lintJustin M. Keyes2019-09-13
|
* getdigits: introduce `strict`, `def` parametersJustin M. Keyes2019-09-13
| | | | | | | | | | | | Problem: During a refactor long ago, we changed the `getdigits_*` familiy of functions to abort on overflow. But this is often wrong, because many of these codepaths are handling user input. Solution: Decide at each call-site whether to use "strict" mode. fix #5555
* vim-patch:8.1.0362: cannot get the script line number when executing a functionerw72019-09-04
| | | | | | | Problem: Cannot get the script line number when executing a function. Solution: Store the line number besides the script ID. (Ozaki Kiichi, closes vim/vim#3362) Also display the line number with ":verbose set". https://github.com/vim/vim/commit/f29c1c6aa3f365c025890fab5fb9efbe88eb1761
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* PVS/V571: condition was already verifiedJustin M. Keyes2019-05-06
|
* cleanup: rename menu_nable_recurse() #9707Petter Wahlman2019-03-10
|
* menu_get(): fix query behaviorJustin M. Keyes2019-01-27
| | | | | | - Return the menu properties, not only its children. - If the {path} param is given, return only the first node. The "next" nodes in the linked-list are irrelevant.
* menu_get(): Do not include empty itemsJustin M. Keyes2019-01-27
| | | | | Caused by a typo: `dict` instead of `dic`. Renamed variable to `d` to make it less similar.
* fix ":menu Item.SubItem"Justin M. Keyes2019-01-27
| | | | | | | | | | | | | | :menu should print sub-menu contents. E.g. this should print the "File.Save" submenu: nvim -u NORC :source $VIMRUNTIME/menu.vim :menu File.Save Regressed in dc685387a3d6 Blocks #8173 menu_get() also was missing some results for some cases.
* vim-patch:8.0.0411: menu translations don't match when case is changed.Jan Edmund Lazo2019-01-26
| | | | | | Problem: We can't change the case in menu entries, it breaks translations. Solution: Ignore case when looking up a menu translation. https://github.com/vim/vim/commit/11dd8c1201033dd74e2ea665ba277425b4b965b0
* replace fallthrough comment with macroJan Edmund Lazo2018-09-21
| | | | Follow-up of vim-patch:8.0.1215
* menu: enable in ex_menu() is TriStateJan Edmund Lazo2018-08-01
|
* vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
| | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* vim-patch:8.0.0466: still macros that should be all-caps (#8510)Jan Edmund Lazo2018-06-10
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps. https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c
* *: Provide list length when allocating listsZyX2018-01-14
|
* Merge #7593 'PVS static analysis fixes'Justin M. Keyes2017-11-22
|\
| * menu.c: remove conditional expression that is always truePeter Kalauskas2017-11-22
|/
* Deal with NOP, add actext to outputKillTheMule2017-10-02
|
* menu_get: prettyprint special charsKillTheMule2017-10-01
|
* coverty: solve  #7149Matthieu Coudron2017-08-15
|
* menu_get(): docJustin M. Keyes2017-07-28
|
* viml: introduce menu_get() function #6322Matthieu Coudron2017-07-28
| | | | menu_get({path}, {modes}). See :h menu_get.
* 'cpoptions': remove "<" flag; ignore <special>Justin M. Keyes2017-07-08
| | | | Closes #6937 "nvim_get_keymap output is unreliable"
* ui: cleanup UI_CALL wrappersBjörn Linse2017-05-10
| | | | remove pointless control chars in the text stream
* *: Add comment to all C filesZyX2017-04-19
|
* *: Fix linter errorsZyX2017-02-15
|
* *: Partial string handling refactoringZyX2017-02-15
| | | | | | | | Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
* refactor: eliminate misc2.cJustin M. Keyes2016-09-13
| | | | | | | | | | move `call_shell` to misc1.c Move some fns to state.c Move some fns to option.c Move some fns to memline.c Move `vim_chdir*` fns to file_search.c Move some fns to new module, bytes.c Move some fns to fileio.c
* keymap: Make replace_termcodes and friends accept length and cpo_flagsZyX2016-04-18
| | | | | | | Reasons: - One does not have to do `s[len] = NUL` to work with these functions if they do not need to replace the whole string: thus `s` may be const. - One does not have to save/restore p_cpo to work with them.
* src/*: Remove `VIM - Vi improved ...` headerMichael Reed2015-11-27
| | | | | | | | | | | | | | | | | | | Regarding the individual items in the header: `Vim - Vi improved by Bram Moolenar` Bram Moolenar is already mentioned throughout the documentation, as well as the intro screen. `:help uganda` It's already shown to all users who don't use `shortmess+=I` upon starting nvim, and is already placed prominently in help.txt, i.e., `:help` run with no arguments. `:help credits` Already mentioned near the top of help.txt. `README.md` Already mentioned in develop.txt.
* src: README.txt -> README.mdMichael Reed2015-11-23
| | | | | The former no longer exists in this repo; see the top of src/nvim/README.md.
* menu: support :emenu invoked by cmenu map.bambu2015-10-03
|
* ex_menu: use `bool`. #3389Pavlos Vinieratos2015-09-25
|
* Notify attached UIs whenever menus changeRobin Allen2015-08-21
| | | | | This adds a redraw notification "update_menu" which is sent whenever Vim's menus are changed by the :menu command and friends.
* menu: Fix :emenu mode detection #2992Robin Allen2015-07-22
| | | | | | | | | | | | | A menu item can have separate bindings for each Vim mode. :emenu checks to see which binding it should execute. But, it assumes it can only be called from Normal mode, so its mode detection is based on some guesswork. For instance, it detects if you've just used C-O and, if so, uses the Insert mode binding. Now that :emenu can be called from any mode (via vim_command), this commit has it check the actual mode we're in, and simply use the binding for that mode if we aren't in Normal mode.
* Macro cleanup: FEAT_BEVAL_TIPHettomei2015-07-17
|
* Macro cleanup: FEAT_GUI_MSWINHettomei2015-07-17
|
* Macro cleanup: FEAT_GUI_GTKHettomei2015-07-17
|
* Macro cleanup: FEAT_TOOLBARHettomei2015-07-17
|
* Macro cleanup: FEAT_BEVALHettomei2015-07-17
|
* Macro cleanup: FEAT_GUI_W32Hettomei2015-07-17
|
* Remove :tearoff #3007Marco Hinz2015-07-15
| | | | | | | | This also removes the 't' flag from 'guioptions'. Side effect: :term[inal] -> :te[rminal] Closes #3003.
* Enable -Wconversion: menu.c #2885Ismail Badawi2015-06-25
|
* Replace VIM_ISDIGIT() and vim_isdigit() with ascii_isdigit() defined in ascii.hFelipe Oliveira Carvalho2015-04-24
|