Don't show property value suggestions when there's only one

Use case or problem

I’ve run into the same issue described below when editing property values: Home / End don’t work:

Proposed solution

The issue with Home/End not doing anything is caused by Obsidian showing a drop-down of suggested property values. However, when there’s only one property value to be shown, it doesn’t make sense to show the drop down. For example in this “Apartment” template, the value for the “Gym” field will most often be unique:

The suggestion is to not show the drop-down if only one one value was found to match. This will let Home / End function as usual instead of trying to scroll a 1-element drop-down.

Current workaround (optional)

Press Escape.

2 Likes