Add support for the getscriptnames() function#10957
Add support for the getscriptnames() function#10957yegappan wants to merge 1 commit intovim:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10957 +/- ##
==========================================
- Coverage 81.83% 81.82% -0.01%
==========================================
Files 158 158
Lines 186484 186499 +15
Branches 42158 42162 +4
==========================================
- Hits 152605 152602 -3
- Misses 21386 21396 +10
- Partials 12493 12501 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
runtime/doc/builtin.txt
Outdated
|
|
||
| getscriptnames() *getscriptnames()* | ||
| Returns a |List| with information about all the sourced Vim | ||
| scripts. (|:scriptnames|) |
There was a problem hiding this comment.
The :scriptnames command lists scripts in the order they were sourced, which is sometimes useful. Is that also the case here? Would be good to have the same behaviour, and also document it here.
There was a problem hiding this comment.
Yes. The getscriptnames() function also returns the scripts in the order they were sourced.
|
The help says "Returns a |List| with information about...", getscriptinfo() would be a slightly better name. Perhaps we'll add more information later. No need to update the PR, I'll change it. |
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Cherry-pick usr_41.txt change from a later runtime update.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Cherry-pick usr_41.txt change from a later runtime update.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Problem: Cannot easily get the list of sourced scripts.
Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan,
closes vim/vim#10957)
vim/vim@f768c3d
Cherry-pick usr_41.txt change from a later runtime update.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
…2596) Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes vim/vim#10957) vim/vim@f768c3d Cherry-pick usr_41.txt change from a later runtime update. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
…ovim#22596) Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes vim/vim#10957) vim/vim@f768c3d Cherry-pick usr_41.txt change from a later runtime update. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
…ovim#22596) Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes vim/vim#10957) vim/vim@f768c3d Cherry-pick usr_41.txt change from a later runtime update. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
No description provided.