Skip to content

feat(editor): display clickable link when starting editor#180

Merged
josephinecr merged 1 commit into
mainfrom
feature/fix-editor-command
Jun 24, 2026
Merged

feat(editor): display clickable link when starting editor#180
josephinecr merged 1 commit into
mainfrom
feature/fix-editor-command

Conversation

@josephinecr

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR resolves issue #175 by explicitly displaying a clickable link in the terminal when the nf editor command is run.

Key changes:

  • Extracted the URL generation logic from the openEditor method to the main handle method.
  • Added a console output to display the generated link (with cyan formatting for visibility).
  • This ensures that users always see the editor link in their terminal, which is especially useful if they run the command with the --no-open flag or if the automatic browser launch fails.

Closes #175

How do you test this PR?

  1. Build the CLI (pnpm run build).
  2. Run nf editor or nf editor --no-open.
  3. Verify that the terminal logs 🔗 Editor running! Open it in your browser: http://localhost:3000/load-project...
  4. Click the link to ensure it properly targets the editor.

@josephinecr josephinecr requested a review from Exeloo as a code owner June 24, 2026 07:06
@josephinecr josephinecr merged commit 22c536d into main Jun 24, 2026
3 checks passed
@josephinecr josephinecr deleted the feature/fix-editor-command branch June 24, 2026 08:22
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.

Fix editor command

2 participants