question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Use a keyboard shortcut to trigger a window with content by html

See original GitHub issue

Context

  • This issue is not a bug report. (please use a different template for reporting a bug)
  • This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

I would like to add a feature in my editor: users select a text, and click on a keyboard shortcut, then a window with content by html (eg, a table like this) appears next to the selection, in the end users move the mouse or use another keyboard shortcut to make the window disappear.

I understand that we could use addDynamicKeybinding or like here to add a keyboard shortcut.

But for the window, it seems that we have only diagnostic window that support html, right? If so, the only use case I know about diagnostic window is by hoverprovider like here, where we need to hover on a text to make the diagnostic window appear.

Does anyone know how to use a keyboard shortcut to trigger a diagnostic window (whose content is related to the selection)?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rcjsuencommented, Dec 27, 2021

But for the window, it seems that we have only diagnostic window that support html, right? If so, the only use case I know about diagnostic window is by hoverprovider like here, where we need to hover on a text to make the diagnostic window appear.

You can get the hover to appear with <kbd>Cmd + K, Cmd + I</kbd> on macOS. Not sure what the keybindings are on Windows and Linux but you can figure it out by searching for it with <kbd>F1</kbd>.

image

0reactions
chengtiecommented, Dec 28, 2021

How would you design and implement these features?

I don’t think what you’re describing is easily achievable with the APIs. I imagine you’d have to create a new command that pops up a window yourself.

Ah, that’s not good news. To create a shortcut that pops up a window that supports html, are there any samples or references to follow?

Read more comments on GitHub >

github_iconTop Results From Across the Web

accesskey - HTML: HyperText Markup Language | MDN
Alt + Shift + key, On Firefox 57 or newer: Control + Option + key or Control + Alt + key. On Firefox...
Read more >
Keyboard shortcuts - Chrome Developers
# Network panel keyboard shortcuts ; Start / stop recording, Command + E · Control + E ; Record a reload, Command +...
Read more >
GitLab keyboard shortcuts
Global shortcuts ; Shift + r, Go to your Review requests page. ; Shift + t, Go to your To-Do List page. ;...
Read more >
Keyboard shortcuts - Product Documentation | ServiceNow
Keyboard shortcuts ; Toggle application navigator, Alt+ Ctrl+C · Ctrl+Opt+C ; Activate navigation filter field, Alt+Ctrl+F · Ctrl+Opt+F ; Impersonate ...
Read more >
Keyboard shortcuts - Microsoft Edge Development
Keyboard shortcuts for opening DevTools ; Open whatever panel you used last, F12 or Ctrl + Shift + I, Command + Option +...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found