nextflow-vim icon indicating copy to clipboard operation
nextflow-vim copied to clipboard

Enable "go to filepath" on paths without .nf extension

Open samuell opened this issue 10 months ago • 0 comments

Right now, if include paths are not including the .nf part in the file paths, like this:

include { FASTQC                            } from '../modules/nf-core/fastqc/main'
include { MULTIQC                           } from '../modules/nf-core/multiqc/main'
include { VSEARCH_CLUSTER                   } from '../modules/nf-core/vsearch/cluster/main'
include { FASTA_NEWICK_EPANG_GAPPA          } from '../subworkflows/nf-core/fasta_newick_epang_gappa/main'

... it is not possible to use the built in "go to filepath" (g-f) when the cursor is on one of those paths.

Instead one gets an error like:

E447: Can't find file "../modules/nf-core/fastqc/main" in path

It would be useful if the extension could check for the same path with .nf appended if the path does not exist.

Related issues

  • #5

samuell avatar Jan 31 '25 13:01 samuell