Skip to content

Listen for jumpToRule message from nev#57

Merged
monsterkrampe merged 1 commit into
mainfrom
feature/jump-to-rule
Jun 29, 2026
Merged

Listen for jumpToRule message from nev#57
monsterkrampe merged 1 commit into
mainfrom
feature/jump-to-rule

Conversation

@monsterkrampe

@monsterkrampe monsterkrampe commented Jun 25, 2026

Copy link
Copy Markdown
Member

Nev already reintroduced the "jump to rule" button on the blue rule boxes. The goal is that clicking the button automatically sets focus to the corresponding Nemo tab and makes the editor jump to the line featuring that rule.
This PR implements this functionality on the Nemo Web side.

This PR relies on knowsys/nemo#790.

@monsterkrampe monsterkrampe self-assigned this Jun 25, 2026
@monsterkrampe monsterkrampe added the enhancement New feature or request label Jun 25, 2026
@github-project-automation github-project-automation Bot moved this to Todo in nemo Jun 25, 2026
@monsterkrampe monsterkrampe force-pushed the feature/jump-to-rule branch 6 times, most recently from bbf1ea0 to fd51d68 Compare June 26, 2026 07:53
@monsterkrampe monsterkrampe marked this pull request as ready for review June 26, 2026 07:56
@monsterkrampe monsterkrampe requested a review from mmarx June 26, 2026 07:56
@menocsk27

menocsk27 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

the final version of this from nev is here: 8c3c13
instead of a button, this gets triggered whenever clicking on a rule or when using the Focus on rule button.

@mmarx mmarx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I have a more philosophical question about changing the window title, but that's really not something for me to decide.

Comment on lines +49 to +54
// briefly change window title
const originalTitle = document.title;
document.title = "Rule Highlighted!";
setTimeout(() => {
document.title = originalTitle;
}, 2000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really something we want to do? I'd find that pretty intrusive, when something like a flash message would suffice for this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, well, this happens while the Nev tab is in foreground, doesn't it? Still, perhaps better to just prefix the existing title instead of overriding it completely?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we were trying to find reliable ways to indicate to a user that they should switch the tab and to highlight which tab is even the relevant one. I'm also not quite happy with what we have but I also do not have a good solution in mind 😅
Prefixing instead of completely changing the title sounds better though. I'll change that :)

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in nemo Jun 26, 2026
@monsterkrampe monsterkrampe force-pushed the feature/jump-to-rule branch from fd51d68 to 8b8ec7d Compare June 29, 2026 06:14
@monsterkrampe monsterkrampe merged commit 5f54492 into main Jun 29, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in nemo Jun 29, 2026
@monsterkrampe monsterkrampe deleted the feature/jump-to-rule branch June 29, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants