I'm using the fzf tmux command
But I need to edit the variable string content, inside if statement block, before it's passed to execution command:
\| if $FZF_PICK != ''
\| execute 'goto' fnameescape($FZF_PICK)
\| endif
how can I achieve that? I've tried with the substitution command to no avail, but that's maybe on me because I'm new to vimscript.
for example, the FZF_PICK variable contains this string:
this/is/my:string:and this is the content
I want to reassign to FZF_PICK all the content up to the first colon sign, effectively removing
:string:and this is the content
from the variable. Then execute the goto command on the (now edited) variable.