Skip to content

Conversation

@twio142
Copy link
Contributor

@twio142 twio142 commented Oct 8, 2025

This PR adds two omnibar features:

  • Initial query support for URLs type, and
  • Improved alias expansion to only consider the part of input before cursor on spacebar press.

These two changes work together to allow opening the omnibar with a selection from page, move the cursor to the beginning, and type an alias to act on that selection.

It offers a different approach than having to specify one search alias with a key (i.e. sg).

api.mapkey('t', '#8Open a URL', () => {
  api.Front.openOmnibar({type: 'URLs', extra: window.getSelection().toString()});
});

on space key pressed, only match the part of input string before cursor
for an alias, not the entire input string
@brookhong brookhong merged commit ca4a36e into brookhong:master Oct 11, 2025
0 of 2 checks passed
@twio142 twio142 deleted the feat/omnibar branch October 11, 2025 01:46
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

Successfully merging this pull request may close these issues.

2 participants