Skip to content

Auto-select the alphabetical choice in forward-slash inserter command #37532

Closed

Description

@karmatosed

The forward-slash inserter command right now for 'ima' shows this:

2021-12-20 at 17 22

I would have expected 'Image' to be the one selected and added first. This has caught me a number of times when in flow by adding Imgur not Image. Not only can we likely assume someone wants Image block more, it also feels like it wasn't applying any alphabetical or obvious (to me) listing.

I'm curious what others think.

Activity

  1. Mamaduka commented on Dec 30, 2021

    @Mamaduka
    Member

    Hi, @karmatosed

    I can see the "Image" block correctly selected when I try ima, but I get the same results as you with img.

    CleanShot 2021-12-30 at 16 00 54

  2. annezazu commented on Feb 7, 2022

    @annezazu
    Contributor

    With WordPress 5.9, I see the following for /ima:

    Screen Shot 2022-02-06 at 7 30 01 PM

    However, if I try /img, I then see the reversed results:

    Screen Shot 2022-02-06 at 7 30 05 PM

    This feels like an easy win and was noted as feedback as part of the FSE Outreach Program's All Things Media exploration:

    Using / and img always also adds Imgur embed option. Which I have never heard of and do not plan to use. It would be nice to not so easily show embeds that are not much used.

  3. paaljoachim commented on Feb 7, 2022

    @paaljoachim
    Contributor

    Thank you for opening the issue Tammie!

    I would prefer not to see Imgur every time I write /img as Imgur is not a service I plan on using or have heard of. Having a way to make less used embeds just a little more hidden would be helpful. This could for instance mean that writing / Img only Image will show up but writing Imgu will show Imgur embed service.

    Here is an associated issue:
    Show inserter block variations in the block manager and allow them to be toggled
    #27708

    I know Nik @ntsekouras has earlier worked on this. I believe also @jasmussen Joen has some thoughts on it as well.

  4. ntsekouras commented on Feb 7, 2022

    @ntsekouras
    Contributor

    👋 This is expected. The thing is that we use a generic algorithm for ranking them here and IMO this works well. It prioritizes the results based on the searched term and if we would sort them alphabetically, the results would be less relevant.

    The above case happens because the img is part of the block variation's title(imgur) and I can't think of any adjustment that could be generic and work well in all scenarios.

    On the other hand though this feels like an important but very specific request and we could handle this on it's own. A specific approach for this would be here, where I change the title of Imgur variation to Embed Imgur.

  5. removed their assignment
    on Oct 11, 2022
  6. karmatosed commented on Nov 28, 2024

    @karmatosed
    MemberAuthor

    Thank you everyone. Today if you still type 'img' you get the img embed. I think as no action has happened and that PR is now out of date, I am ok closing this. If someone wants to create a quality of life PR that's awesome but as it works as expected that is ok for me.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Feature] InserterThe main way to insert blocks using the + button in the editing interface[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions