Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: show methods applicable to object (methodswith) #2679

Closed
tfiers opened this issue Jan 19, 2022 · 3 comments · May be fixed by #3240
Closed

Feature: show methods applicable to object (methodswith) #2679

tfiers opened this issue Jan 19, 2022 · 3 comments · May be fixed by #3240

Comments

@tfiers
Copy link

tfiers commented Jan 19, 2022

Idle feature idea (sparked by these tweets on "the power of the dot: what I envy about OOP").

I want to mimic the obj.<tab> behaviour of OOP editors (like vscode-python or IPython), as it is extremely useful for exploring APIs and writing code:

For Julia, by example:

using FilePaths
dir = p"~/subdir"
dir|

, and then pressing some shortcut key would show:

absolute
chown
cp
exists
⋮

i.e. we call

methodswith(typeof(dir), supertypes=true)

, and suitably present the results, and make them iteratively filterable.
The methodswith call should probably be cached, as it's often rather slow.

Same idea could be done in IJulia.

@tfiers
Copy link
Author

tfiers commented Jan 19, 2022

Just learned something quite similar is coming to the language itself: JuliaLang/julia#38791
So closing for now.

@tfiers tfiers closed this as completed Jan 19, 2022
@tfiers
Copy link
Author

tfiers commented Jan 19, 2022

Also see julia-vscode/LanguageServer.jl#979 and the linked discourse

@pfitzseb
Copy link
Member

julia-vscode/LanguageServer.jl#980

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 a pull request may close this issue.

2 participants