[GH-ISSUE #4055] annoying "Set as variable" popup on any text highlight #1442

Open
opened 2026-03-16 20:21:05 +03:00 by kerem · 5 comments
Owner

Originally created by @bnjox on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4055

anytime I highlight a text, I keep getting the "set as variable" popup and it's annoying.
sometimes I just want to highlight it, to copy or even just read.

Peek 2024-05-10 15-58

PS: this is the best lightweight client I have used and this is my biggest gripe and pain point

Originally created by @bnjox on GitHub (May 10, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4055 anytime I highlight a text, I keep getting the "set as variable" popup and it's annoying. sometimes I just want to highlight it, to copy or even just read. ![Peek 2024-05-10 15-58](https://github.com/hoppscotch/releases/assets/61359802/1e2897f8-0c5c-4671-956f-94c3fb3cb452) PS: this is the best lightweight client I have used and this is my biggest gripe and pain point
Author
Owner

@AndrewBastin commented on GitHub (May 10, 2024):

Hi @sparrowsl

Thanks for the feedback. We will look into a solution for this.

But this repo is meant for hosting release binaries. You are supposed to open issues in https://github.com/hoppscotch/hoppsctch

Moving this issue

<!-- gh-comment-id:2104875746 --> @AndrewBastin commented on GitHub (May 10, 2024): Hi @sparrowsl Thanks for the feedback. We will look into a solution for this. But this repo is meant for hosting release binaries. You are supposed to open issues in https://github.com/hoppscotch/hoppsctch Moving this issue
Author
Owner

@thetronjohnson commented on GitHub (May 10, 2024):

Hi @sparrowsl

Your feedback makes sense and we've been considering a different implementation.

What do you think about the approach below?

  1. Select a text and open Spotlight (Cmd/Control + K).
  2. Spotlight will display the 'Set as Variable' action along with other relevant actions.
<!-- gh-comment-id:2104895174 --> @thetronjohnson commented on GitHub (May 10, 2024): Hi @sparrowsl Your feedback makes sense and we've been considering a different implementation. What do you think about the approach below? 1. Select a text and open Spotlight (Cmd/Control + K). 2. Spotlight will display the 'Set as Variable' action along with other relevant actions.
Author
Owner

@bnjox commented on GitHub (May 10, 2024):

Hi @thetronjohnson

thanks for the swift reply,

the options are nice, but is there a way we can opt-in to the actions,
personally, I like to highlight the texts while I think about something.

but if we can select the text and then Cmd/Control + K, then thats super beautiful

<!-- gh-comment-id:2104922628 --> @bnjox commented on GitHub (May 10, 2024): Hi @thetronjohnson thanks for the swift reply, the options are nice, but is there a way we can opt-in to the actions, personally, I like to highlight the texts while I think about something. but if we can select the text and then Cmd/Control + K, then thats super beautiful
Author
Owner

@awsms commented on GitHub (Jun 27, 2024):

+1 for opting-out to the super annoying "set as variable".
I only used it once, and it didn't work as I'd expect (it won't overwrite an existing variable, just create a new one...)

<!-- gh-comment-id:2194916420 --> @awsms commented on GitHub (Jun 27, 2024): +1 for opting-out to the super annoying "set as variable". I only used it once, and it didn't work as I'd expect (it won't overwrite an existing variable, just create a new one...)
Author
Owner

@kevindong commented on GitHub (Aug 4, 2024):

I'd also love to see this change. While setting an API response as a variable is a valid workflow, I would image it's vastly more common to copy/paste a snippet of the response.

Right now, I use the developer tools to add in a rule that hides the pop up which is obviously not great.

Either run this piece of JavaScript in devtools:

const sentinel = document.createElement("style");
sentinel.textContent = `.fixed.transform.-translate-x-10.-translate-y-8.rounded.border.border-dividerDark.bg-popover.p-2.shadow-lg { display: none !important; }`;
document.head.appendChild(sentinel);

or use the style inspector tools to add this in:

.fixed.transform.-translate-x-10.-translate-y-8.rounded.border.border-dividerDark.bg-popover.p-2.shadow-lg {
    display: none !important;
}

This is of course brittle and will break whenever the class definition of the pop up changes.

<!-- gh-comment-id:2267767903 --> @kevindong commented on GitHub (Aug 4, 2024): I'd also love to see this change. While setting an API response as a variable is a valid workflow, I would image it's vastly more common to copy/paste a snippet of the response. Right now, I use the developer tools to add in a rule that hides the pop up which is obviously not great. Either run this piece of JavaScript in devtools: ```js const sentinel = document.createElement("style"); sentinel.textContent = `.fixed.transform.-translate-x-10.-translate-y-8.rounded.border.border-dividerDark.bg-popover.p-2.shadow-lg { display: none !important; }`; document.head.appendChild(sentinel); ``` or use the style inspector tools to add this in: ```css .fixed.transform.-translate-x-10.-translate-y-8.rounded.border.border-dividerDark.bg-popover.p-2.shadow-lg { display: none !important; } ``` This is of course brittle and will break whenever the class definition of the pop up changes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1442
No description provided.