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

Please, can inferred types be copied to clipboard #139

Closed
Anton-Latukha opened this issue Nov 19, 2021 · 5 comments
Closed

Please, can inferred types be copied to clipboard #139

Anton-Latukha opened this issue Nov 19, 2021 · 5 comments

Comments

@Anton-Latukha
Copy link
Contributor

Currently, there are numerous cases when types that are inferred (for instance declarations, for local functions, for typed holes) are shown in floating minibuffer, but can not be copied to search information on them.

Screenshot-2021-11-19-22:02:56

As a regular user I need to manually remember, & retype IOEnv (Env TcGblEnv TcLclElv) a -> IO a in a separate virtual monitor to websearch.

If something - I know where are the inferred type signatures are in the HLS. But seems like that info is provided into Emacs & also can be retrieved in it.

An inferred signature retrieval key combination would be of immense help.

@yyoncho
Copy link
Member

yyoncho commented Nov 19, 2021

FYI there is M-x lsp-describe-thing-at-point which will open a buffer supporting copying.

@Anton-Latukha
Copy link
Contributor Author

Anton-Latukha commented Nov 19, 2021

Yup. Writing a report - thought same thing (somebody would tell me to configure/open static buffer).

It is hidden in Spacemacs in h (help) submenu (, h h).

Good enough for me. But separate function would been even awesomer (*sic). It asks to exist when project would have #129 ability.

@yyoncho
Copy link
Member

yyoncho commented Nov 19, 2021

JFYI you can use K in spacemacs as well.

@Anton-Latukha
Copy link
Contributor Author

Anton-Latukha commented Nov 19, 2021

Never knew of these short key combinations, K is not in the Spacemacs development Haskell layer docs nor in development LSP layer docs & idk how to search/see all currently loaded Emacs keybinds in the keymap (seems to be describe-bindings).

@yyoncho
Copy link
Member

yyoncho commented Nov 19, 2021

It is in top level spacemacs convention. K = ,hh; gd = ,gg

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