Optimize when repository permalink query is fired
The following discussion from !189208 should be addressed:
- [ ] @jerasmus started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/189208#note_2475568552): (+1 comment)
> **nit(non-blocking):** right now this will make a request to the backend the user navigates into a new directory. I wonder if there's a way to fire this query only when it's needed (keyboard shortcut is pressed or Copy permalink button is clicked).
issue