summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/plugin/tutor_spec.lua
AgeCommit message (Collapse)AuthorFiles
2025-11-19revert: "fix(tutor): remove hyperlinks, simplify non-interactive examples" ↵Justin M. Keyes1
#36622 This reverts commit 5e039c8e9775651bc24cf8a669d33217b24bd59e.
2025-10-27fix(tutor): remove hyperlinks, simplify non-interactive examples #36307Eduardo Cruz Guedes1
1. Every hyperlink-like element was replaced by `"$1"` (where $1 is the original string showed in the hyperlink); 2. Arrows `--->` were used in lines containing practice examples when no editing text is involved; 3. Context on interactivity was minimally adapted when strictly needed, not to disrupt the original tutor's intent; 4. Tests regarding the tutor file refactored to ensure the new syntax is not flagged as an error.
2025-07-18test(tutor_spec): remove test description("Tutor: tutor")brianhuster1
Problem: It is redundant since we have another test that test interactive marks in lesson 2.6 of tutor 1
2025-07-18refactor(tutor): reimplement interactive marks as extmark in Luabrianhuster1
Problem: From https://matrix.to/#/!cylwlNXSwagQmZSkzs:matrix.org/$Ofj-TFIsEMbp0O9OhE8xuZSNi-nhRLtZTOgs6JRLNrs?via=matrix.org&via=gitter.im&via=mozilla.org In lesson 2.6, users are asked to remove the second, forth and fifth lines with `dd` command, then they are asked to undo twice to make the text go back to original state. But after that, the mark ✗ appears again, which confuses the user because they think they do something wrong. This is a limitation with the current implementation, which is based on line number only. Solution: Reimplement interactive marks as extmarks in Lua. This also make the feature less fragile, as users can remove, add some arbitrary lines without breaking the interactive marks. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2025-06-28vim-patch:9.1.1421: tests: need a test for the new-style tutor.tutor (#34267)Phạm Bình An1
Problem: tests: need a test for the new-style tutor.tutor, patch 9.1.1384 broke the expected positions for the signs Solution: Update all number keys in tutor.tutor.json to match the correct line numbers in tutor.tutor, replace tabs by spaces, add a screen-dump test to verify it does not regress (Pham Bình An) closes: vim/vim#17416 https://github.com/vim/vim/commit/a541f1de2bfdd18d927974bc13fe5d4ee3cb5698
2025-05-23vim-patch:2323f22: runtime(new-tutor): add chapter two to the interactive ↵brianhuster1
tutorial closes: vim/vim#16803 https://github.com/vim/vim/commit/2323f225ca8aa61d9a66fd8aac007bec781c048d Co-authored-by: RestorerZ <restorer@mail2k.ru>
2025-05-21docs(tutor): move lesson 7.2 below lesson 7.3 #33662Phạm Bình An1
Problem: - Lesson 7.3 (Cmdline Completion) teaches an important way to discover Nvim features. I think users should learn it before they start configuring Nvim - Nvim can be configured in Lua as well, but lesson 7.2 (Configuring Nvim) only mentions init.vim. And I think Nvim is promoting Lua more Solution: - Move lesson 7.2 to be after lesson 7.3 - Lesson 7.2 should teach about init.lua Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2025-04-27docs: provide example_init.lua #33524Phạm Bình An1
Problem: There are some "boilerplate" steps for new users. Although we are constantly improving defaults and lifting patterns into core, users eventually want to know how to start their own config, add plugins, etc. Solution: Add `runtime/example_init.lua` and refer to it from docs.
2025-04-15vim-patch:829eda7: runtime(new-tutor): update tutor and correct comandline ↵Phạm Bình An1
completion (#33449) Problem: Some parts of the tutor are outdated. - For example, pressing `<Tab>` after typing `:e` does not complete the command `:edit`, but shows a completion menu with the first entry being `:earlier`. closes: vim/vim#17107 https://github.com/vim/vim/commit/829eda7d381e5f635169c927103568b335cd599d
2024-11-14fix(tests): needing two calls to setup a screen is cringebfredl1
Before calling "attach" a screen object is just a dummy container for (row, col) values whose purpose is to be sent as part of the "attach" function call anyway. Just create the screen in an attached state directly. Keep the complete (row, col, options) config together. It is still completely valid to later detach and re-attach as needed, including to another session.
2024-04-23test: improve test conventionsdundargoc1
Specifically, functions that are run in the context of the test runner are put in module `test/testutil.lua` while the functions that are run in the context of the test session are put in `test/functional/testnvim.lua`. Closes https://github.com/neovim/neovim/issues/27004.
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2024-03-25fix(test): typingLewis Russell1
2024-03-18fix(tutor): set a value for ":syntax iskeyword" (#27833)En-En1
Problem: "NOTE"s, inline Vim script code, and links ending in digits may not be highlighted correctly within the :Tutor. Solution: set an explicit value for ":syntax iskeyword" that includes digits. Do it after ":syntax include"s, so the included syntax/sh.vim doesn't mess with the value. Increase screen test width so all text within the conclusion section is visible. Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
2024-01-03refactor: format test/*Justin M. Keyes1
2023-09-26refactor(tutor): cleanupJustin M. Keyes1
2023-09-26fix(tutor): Tutor steps don't work on Windows #25251Leonardo Mello1
Problem: Some steps in :Tutor don't work on Windows. Solution: Add support for `{unix:...,win:...}` format and transform the Tutor contents depending on the platform. Fix https://github.com/neovim/neovim/issues/24166