nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.92k stars 334 forks source link

Suppress hydrogen tooltips? #1582

Open ghost opened 5 years ago

ghost commented 5 years ago

Is there any way to suppress the "Click to copy, Cmd+Click to open in editor" tooltip that keeps appearing in the Hydrogen output?

hydrogen/lib/components/result-view/result-view.js:

  addCopyTooltip = (element: ?HTMLElement, comp: atom$CompositeDisposable) => {
    if (!element || !comp.disposables || comp.disposables.size > 0) return;
    comp.add(
      atom.tooltips.add(element, {
        title: `Click to copy,
          ${
            process.platform === "darwin" ? "Cmd" : "Ctrl"
          }+Click to open in editor`
      })
    );
  };
BenRussert commented 5 years ago

Not at the moment. The intent is that it should only appear if you hover on the icon and be removed when your mouse leaves. If that is not happening, then this is a bug.

Is the intended behavior annoying to you? It seems a bit specific to dedicate another config to. Maybe you have a suggestion on how it could behave to be less annoying?

ghost commented 5 years ago

It is, absolutely, annoying. I am vision impaired, and have everything in Atom scaled to 200% or more. Every time my mouse moves over the inline areas, this tool tip pops up, and there is nothing I can do about it short of forking the entire Hydrogen project and removing the code. Why not a config variable, or at least a hydrogen class added to the tooltip div, so I can make it smaller or invisible in CSS?

BenRussert commented 5 years ago

Gotcha, are you interested in making a PR? The tooltip code you are looking for is mostly here I believe. The config.js file is where the configs are if you wanted to go that route.