Skip to content

Command palette jump to project file

Olena Horal-Koretska requested to merge Command-palette-find-file into master

What does this MR do and why?

Adds the jump to project file (default repo branch) functionality to the command palette

How to set up and validate locally

👣 Enabled the feature flag

rails c 
Feature.enable(:command_palette)

👣 Click on the Global Search icon in the new navigation (or / shortcut)

👣 Navigate to some project

👣 Type / in the search input and add search for some file name

In previous MRs we've added some commands - start with > and users scoped search - start with @.

Note that so far we do not have distinct requirements so I've implemented it as I thought would be reasonable. Feel free to add ideas what could be the next commands in the command palette which you'd like to have access to.

My plan is:

👣 Add more scoped searched - epic, MR, project search by !, &

👣 some basic commands context-based - e.g. closing the issue on the issue page or promoting it to an epic. Or some ideas from &8912. Something that would be an easy win

This is an experimental functionality and is the subject of future change or complete removal - we'll get the UX input after a couple of basic experimental commands are added

Screenshots or screen recordings

2023-06-08_16.03.34

Related to &8912

Merge request reports