Tiddlywiki5: [BUG] Pressing Enter in Advanced Search Filter Tab Creates Missing Tiddler

Created on 8 Nov 2020  路  11Comments  路  Source: Jermolene/TiddlyWiki5

Describe the bug
The new $:/AdvancedSearch tweaks creates a missing tiddler

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://tiddlywiki.com/prerelease/
  2. Open $:/AdvancedSearch
  3. Open the Filter Tab
  4. Enter the [tag[book]tag[AI]] in search input
  5. Press Enter key
  6. See Tiddlywiki creates a missing tiddler _[tag[book]tag[AI]]_ and navigate to it

_It seems this is the case for all search boxes in $:/AdvancedSearch_

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome 86
  • Version TW 5.1.23 prerelease

All 11 comments

Hi @kookma, I would say that this is by Design. Pressing enter in such an input field should navigate to whatever is stored in the input field. I think we should let more users test this and see if they find this behavior convenient or buggy

Hi @kookma @BurningTreeC funnily enough, I've recently talked to users who were confused that a new tiddler was apparently created when they pressed "enter" with text in the search input. Part of the problem is perhaps that the new keyboard handling makes it more likely that "enter" is pressed accidentally.

So, I'd actually favour hiding this behaviour behind a setting, so that by default pressing "enter" in a search field is ignored unless there is a highlighted search result.

Hi @Jermolene, that is doable. I'll create a PR for that

Thanks @BurningTreeC

I just don't want to be the one that creates PR #5000 :grin:

@Jermolene , how should that hidden-setting-tiddler be called?

Thanks @BurningTreeC

@Jermolene , how should that hidden-setting-tiddler be called?

Maybe $:/config/Search/NavigateOnEnter/enable set to "yes" or "no"?

@Jermolene , just to be clear: it's enough if it doesn't navigate on enter if the tiddler is missing, right? In each other cases the tiddler should not be missing (if selected from the dropdown / list) ... and the same for the actions on ctrl-Enter

That sounds correct @BurningTreeC

Hi @kookma, I would say that this is by Design. Pressing enter in such an input field should navigate to whatever is stored in the input field. I think we should let more users test this and see if they find this behavior convenient or buggy

Hi @BurningTreeC, Well that is correct, but creating a new tiddler with a title like _[tag[book]tag[AI]]_ is not correct!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

twMat picture twMat  路  5Comments

TiddlyTweeter picture TiddlyTweeter  路  3Comments

saqimtiaz picture saqimtiaz  路  4Comments

twMat picture twMat  路  5Comments

diego898 picture diego898  路  5Comments