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

[Feature request], Add Timer Option to Auto-Completion Suggestions #308

Open
Vulture98 opened this issue Jul 16, 2024 · 1 comment
Open

Comments

@Vulture98
Copy link

Hi,

I love using the "Various Complements" plugin in Obsidian, but I've encountered an issue that affects my workflow. When I'm writing and a suggestion appears (e.g., a note link) especially at sentence end, pressing Enter to move to a new line often selects the suggested note link instead.

Example:
When I write something like:

"Hello, I'm writing something here. How's today
cool, what next"

but, If there's a note named "today," the suggestion appears. Pressing Enter to start a new line inadvertently selects the "today" note link. of course, I can press Esc, but that's a hassle and doesn't occur to mind
this especially problematic at sentence end cz if its in middle i use space n type next word but at end I unintentionally press enter

Suggestion:
Could you please add an option to set a default timer (e.g., 2 seconds) for auto-completion suggestions? This way, if I wait for the specified time, the suggestion will disappear, allowing me to press Enter to move to a new line without selecting the suggestion.

Thank you for considering this feature request!

Best regards,
vulture

@tadashi-aikawa
Copy link
Owner

Thank you for your FR, @Vulture98 :)

Your suggestion is interesting, but it would require waiting 2 seconds before breaking the line in every instance. Here are some other methods that could be considered:

  1. Introduce a delay for displaying suggestions and press Enter immediately at the end of the line.
  2. Suppress suggestions when the end of the line is a period.
  3. Do not automatically focus on the first suggestion when they are displayed, and force the use of a cycle key (e.g., Tab).
  4. Change the selection key for suggestions to something other than Enter (e.g., Tab).

Please feel free to ask if you have any questions or need further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants