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

Improve Eldoc functionality #10

Open
punassuming opened this issue May 10, 2015 · 1 comment
Open

Improve Eldoc functionality #10

punassuming opened this issue May 10, 2015 · 1 comment

Comments

@punassuming
Copy link

Current Eldoc usage takes up multiple lines in the minibuffer and does not center on the top of the match. For example, hovering over Get-Content with eldoc-mode active shows this:

image

The function name is not at the top, and the wrap is extensive. I am currently looking into how to truncate lines. One other thing I noticed with the eldoc array script embedded in the file, is that its output shows multiple matches with a lot of whitespace in between:

(set (intern "Add-AppxPackage" powershell-eldoc-obarray) "
Add-AppxPackage [-Path] <string> [-DependencyPath <string[]>] [-ForceApplicationShutdown] [-InstallAllResources] [-WhatIf] [-Confirm] [<CommonParameters>]

Add-AppxPackage [-Path] <string> -Register [-DependencyPath <string[]>] [-DisableDevelopmentMode] [-ForceApplicationShutdown] [-InstallAllResources] [-WhatIf] [-Confirm] [<CommonParameters>]

Add-AppxPackage [-Path] <string> -Update [-DependencyPath <string[]>] [-ForceApplicationShutdown] [-InstallAllResources] [-WhatIf] [-Confirm] [<CommonParameters>]

Add-AppxPackage -MainPackage <string> [-Register] [-DependencyPackages <string[]>] [-InstallAllResources] [-WhatIf] [-Confirm] [<CommonParameters>]")

I can work on adjusting the output to make it streamlined as well as adding syntax highlighting in the mini buffer.

@jschaf
Copy link
Owner

jschaf commented May 11, 2015

I'm happy to take a look at whatever you develop.

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