Does anyone else wish these hashes were clickable ...
# tools
p
Does anyone else wish these hashes were clickable links in the terminal in vscode that would open a configurable nextflow work dir to the correct location
meow yes 3
a
I can see the appeal, but the terminal should be left as a terminal. No more embellishments or TUIs please. This would seem like something that belongs in a GUI such as Platform (and might even already exist in Platform). Also worth noting that this is
nextflow
output and not something we have control over in
nf-core/tools
.
p
Sorry I didnt realise this was a channel dedicated to nf-core/tools
the functionality already exists in vscode's terminal
Holding command down on a mac while cursoring over a file name in the terminal window allows you to open it in the editor just by clicking on it
my terminal is a tad messy but here
it just doesnt work with these because of the format of the hashes
[b4/d0c4df]
ahh nice- vs code extensions can provide terminal link extension
Copy code
vscode.TerminalLinkProvider<WorkdirTerminalLink>
i will make one for myself πŸ™‚
p
I like the idea! We have a nextflow extension already so this could be a PR πŸ‘€
Most terminals can make arbitrary text into hyperlinks. Rich does this - we use it in a few places in nf-core/tools (lint test names are linked to their docs web page for example). It has no visual effect in the terminal @Arthur so no need to worry.
Linking full / relative paths like you point out is something done by the terminal and not the tool. The only way to make that work would be to show the entire work dir name and that has a very long hash. So that's not possible.
Making it a hyperlink might work though
a
In this case it might not matter too much because the nextflow CLI output is already borked in logfiles because of the formatting. But generally I don’t like adding formatting like this to terminal output (at least not without a toggle) because it messes up the parsing if you pipe etc
p
(And yes it does already exist in Seqera Platform - click a task in the task table, then the modal that pops up has a "Data" tab with a data explorer for that work dir)
πŸ‘ 1
Yeah if we do it for the CLI it'd be flagged by the ANSI log flags / env vars, same as the colours.
p
Copy code
But generally I don't like adding formatting like this to terminal output
I believe we dont need to touch your terminal output, vs code extensions have a way of applying a regex to to what is shown in the terminal ui and converting it to links within the vscode ide
a
Yup I have no issue with whatever happens in a GUI like vscode. That is not standard terminal output.
βœ… 1
p
p
Yeah the only downside of doing it in VSCode is that anyone running a terminal elsewhere doesn't get the benefit
Whereas if we do links with ANSI codes then it works everywhere
VSCode thing is probably easier + cleaner to do though, and faster release cycle πŸ‘€
Note that the ANSI logging also only shows one task per process, so you'll only ever get links for the most recent task that updated for a given process
If you do it in VSCode, you could in theory make it work on all output, which means that folks could turn ANSI logging off, get the old-style with all tasks printed, and then all of those could be linked... πŸ€”
πŸ‘Œ 4
CleanShot 2026-02-04 at 09.56.40.mp4
j
Excited! Phil-sniping is truly becoming a community sport we can all get involved in
πŸ˜† 3
p
A little knowledge of the Nextflow codebase + Claude Code is a dangerous combination πŸ˜†
p
Wow i never even knew this was possible - amazing!
Thats so handy, I navigate the work folder 50x a day πŸ™‚ - Great stuff @Phil Ewels
p
I was just recording the new Nextflow Training videos and wanted this feature like, 20 times πŸ˜†
Not sure why I never thought of it before / no-one ever suggested it before!
Thanks for the idea πŸ™‚
βœ… 1
s
Yeah, something I've been wishing for several times in the last week too Can we make it work with nf-test output too? πŸ˜„
party this 1
p
I'll leave that to @Nicolas Vannieuwkerke πŸ˜…
But tbh, if you pointed Claude at the above PR whilst sat in the nf-test repo, I imagine it could figure it out.
n
Please make an issue for this, but I won't be able to do that soon. There's stuff in nf-test that's way more urgent than this 😁
🀣 1
s
support for
topic
for instance πŸ˜‰
n
Yeah indeed πŸ˜