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) #1033

Closed
tfiers opened this issue Jan 19, 2022 · 2 comments
Closed

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

tfiers opened this issue Jan 19, 2022 · 2 comments

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 in IPython which 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 julia-vscode.

@tfiers tfiers changed the title Feature: show methods applicable to object (methodswith) Feature: show methods applicable to object (methodswith) Jan 19, 2022
@simeonschaub
Copy link
Member

simeonschaub commented Jan 19, 2022

Have you seen JuliaLang/julia#38791? That seems pretty much like what you are asking for.

@tfiers
Copy link
Author

tfiers commented Jan 19, 2022

I haven't. That is fantastic (and long live Tim Holy). Closing this!

@tfiers tfiers closed this as completed Jan 19, 2022
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

No branches or pull requests

2 participants