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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to cloak/hide auto-suggestions #68

Closed
Norfeldt opened this issue Nov 8, 2022 · 5 comments
Closed

add option to cloak/hide auto-suggestions #68

Norfeldt opened this issue Nov 8, 2022 · 5 comments

Comments

@Norfeldt
Copy link

Norfeldt commented Nov 8, 2022

First: 馃憦馃憦馃憦

This extension is fantastic. Thank you so much 馃檹

The cloak mode is also a great option. However it's kinda problematic that it shows the values when auto-completing:

Screenshot 2022-11-08 at 09 06 10

I would love if it was doing something in between like development becomes *...*nt.

export function hideString(str: string | undefined) {
  if (!str) return typeof str
  const hideChars = str.length > 8 ? 2 : 1
  const re = new RegExp(`.*(?=.{${hideChars}}$)`, 'i')

  return str.replace(re, '*...*')
}
@Norfeldt Norfeldt changed the title add option to cloak hide add option to cloak/hide auto-suggestions Nov 8, 2022
@motdotla
Copy link
Member

Good point. @Norfeldt are you using it for screen sharing? Is that why it is important for you to also cloak while auto-completing?

@Norfeldt
Copy link
Author

Norfeldt commented Jan 5, 2023

exactly @motdotla 馃憤

@TheRealSmeddy
Copy link

Would be nice to see this feature in upcoming updates.

@motdotla
Copy link
Member

We will make this is happen soon.

@motdotla
Copy link
Member

This is now available in 0.26.0. #95

Go to your Dotenv extension settings and toggle autopeeking to off.

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

3 participants