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

Add man comand to show the documentation for the method #88

Open
evshvarov opened this issue Jan 27, 2017 · 9 comments
Open

Add man comand to show the documentation for the method #88

evshvarov opened this issue Jan 27, 2017 · 9 comments

Comments

@evshvarov
Copy link
Member

Sometimes you don't know exactly what classmethod does.
it would be great to introduce man command to get the following:

USER> man ##class(Class.Name).Method()
/// it is very valuable method, it has the following params... bla-bla

So this command will show all the /// lines before the method in the class's code

@eduard93
Copy link
Contributor

man class method
or
man class:method

man class
to show class docs

@eduard93
Copy link
Contributor

eduard93 commented Jan 28, 2017

@ChaosGreyder: добавьте еще туда в вывод FormalSpec из CompiledMethod

@nikitaeverywhere
Copy link
Member

I think it makes sense to create "full-featured autocomplete with suggestions" here.

Like the following: when you have some autocomplete variant (class, method, etc), or when you have the method name typed, WebTerminal will show a hint consisting of the comment/docs (if there are ones). Showing the formal spec is possible too! I will try to design this as best as possible.

Wow, so much feedback and things to do, thanks!

@evshvarov
Copy link
Member Author

evshvarov commented Jan 30, 2017

@ZitRos man should be a separate command, cause sometimes you need thorough documentation and formalspec info for the class, methods, params, and once you use the method it 100-500 times in a day you don't care of any formal spec already.

@nikitaeverywhere
Copy link
Member

@evshvarov, why not just to type the code and get hints? As for the man command you suggest, you need also to type the names. Why not to make it elegant? The hont will appear with little delay so it won't disturb the user from every-day purposes. The functionality you describe is covered by documentation as well.

@evshvarov
Copy link
Member Author

evshvarov commented Jan 31, 2017 via email

@nikitaeverywhere
Copy link
Member

How can you see the
documentation of a non-system class which cannot be shown in
docs.intersystems.com?

Caché always has local documentation in it, isn't it?

I agree with the info you need to see each time. How about to add the little (i) icon when hovering over methods/classes in input? And once you press this button, the hint with documentation will appear. I will try to make the best implementation for this!

@evshvarov
Copy link
Member Author

evshvarov commented Jan 31, 2017 via email

@nikitaeverywhere
Copy link
Member

OK. I will make this, but I will definitely think about making cool suggestions with formal spec, class/classMembers docs, etc.

@nikitaeverywhere nikitaeverywhere self-assigned this Jan 31, 2017
@nikitaeverywhere nikitaeverywhere removed their assignment Mar 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants