Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Navigate to next/previous declaration #167

Closed
lars-reimann opened this issue Jul 26, 2021 · 2 comments · Fixed by #511
Closed

Navigate to next/previous declaration #167

lars-reimann opened this issue Jul 26, 2021 · 2 comments · Fixed by #511
Assignees
Labels
enhancement 💡 New feature or request

Comments

@lars-reimann
Copy link
Member

lars-reimann commented Jul 26, 2021

Is your feature request related to a problem? Please describe.
Currently navigation is only possible via the tree view and getting to the next/previous declaration of some type (e.g. function) requires to open a few nodes in the tree.

Describe the solution you'd like
Buttons to navigate to the next/previous declaration in the selection view.
Navigating should be only between elements of the same type, e.g. param1 to param2...
After the last element of a type has been reached, jump to the first element of the next "parent" type. When the last/first element is selected, somehow show that in the buttons. Instead of of "next/previous" the buttons should show "go to beginning/go to end".

Buttons should be on the bottom left and right.

@lars-reimann lars-reimann added the enhancement 💡 New feature or request label Jul 26, 2021
@lars-reimann lars-reimann moved this to Backlog in Safe-DS Nov 24, 2021
@lars-reimann lars-reimann moved this to Backlog in API Editor May 18, 2022
@lars-reimann lars-reimann removed this from Safe-DS May 18, 2022
@jofaul
Copy link
Contributor

jofaul commented May 20, 2022

First/Last element button may be added as well

@lars-reimann
Copy link
Member Author

lars-reimann commented May 23, 2022

Alternative idea: As part of #504 I've added the feature that all elements for which the filter truly applies are shown in bold. Additionally, their ascendants and descendants are still shown to provide context:

image

Rather than having a button that switches between elements of the same level (i.e. next parameter etc.), I would prefer that the next button goes to the next declaration with a bold name and that the previous button goes to the previous one.

If a declaration is selected that is not shown in bold, it should still go to the next bold on in the list (likewise for previous):

image

#505 would probably not be needed anymore then but let's discuss this.

@Aclrian Aclrian moved this from Backlog to Todo in API Editor May 27, 2022
@Aclrian Aclrian moved this from Todo to In Progress in API Editor May 27, 2022
@jofaul jofaul moved this from In Progress to Ready for Review in API Editor May 27, 2022
Repository owner moved this from Ready for Review to ✔️ Done in API Editor May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement 💡 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants