Skip to content

Add support for the getscriptnames() function#10957

Closed
yegappan wants to merge 1 commit intovim:masterfrom
yegappan:lsp
Closed

Add support for the getscriptnames() function#10957
yegappan wants to merge 1 commit intovim:masterfrom
yegappan:lsp

Conversation

@yegappan
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Aug 21, 2022

Codecov Report

Merging #10957 (3d1a9fe) into master (171c683) will decrease coverage by 0.00%.
The diff coverage is 60.00%.

@@            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     
Flag Coverage Δ
huge-clang-none 82.69% <60.00%> (-0.01%) ⬇️
linux 82.69% <60.00%> (-0.01%) ⬇️
mingw-x64-HUGE 0.00% <0.00%> (ø)
mingw-x64-HUGE-gui 78.23% <69.23%> (-0.01%) ⬇️
windows 77.00% <64.28%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/evalfunc.c 90.87% <ø> (ø)
src/scriptfile.c 82.96% <60.00%> (-0.32%) ⬇️
src/sound.c 64.36% <0.00%> (-1.73%) ⬇️
src/os_mswin.c 48.94% <0.00%> (-1.27%) ⬇️
src/profiler.c 82.48% <0.00%> (-0.67%) ⬇️
src/message.c 80.77% <0.00%> (-0.24%) ⬇️
src/term.c 73.67% <0.00%> (-0.16%) ⬇️
src/search.c 85.22% <0.00%> (-0.09%) ⬇️
src/eval.c 92.28% <0.00%> (-0.04%) ⬇️
src/gui.c 73.06% <0.00%> (ø)
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


getscriptnames() *getscriptnames()*
Returns a |List| with information about all the sourced Vim
scripts. (|:scriptnames|)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The getscriptnames() function also returns the scripts in the order they were sourced.

@brammool
Copy link
Contributor

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.

@brammool brammool closed this in f768c3d Aug 22, 2022
mliszcz added a commit to mliszcz/neovim that referenced this pull request Mar 9, 2023
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>
mliszcz added a commit to mliszcz/neovim that referenced this pull request Mar 9, 2023
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>
mliszcz added a commit to mliszcz/neovim that referenced this pull request Mar 10, 2023
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>
zeertzjq pushed a commit to mliszcz/neovim that referenced this pull request Mar 11, 2023
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>
zeertzjq pushed a commit to mliszcz/neovim that referenced this pull request Mar 11, 2023
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>
zeertzjq pushed a commit to mliszcz/neovim that referenced this pull request Mar 11, 2023
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>
zeertzjq pushed a commit to neovim/neovim that referenced this pull request Mar 11, 2023
…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>
yesean pushed a commit to yesean/neovim that referenced this pull request Mar 25, 2023
…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>
folke pushed a commit to folke/neovim that referenced this pull request May 22, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants