Answer the question
In order to leave comments, you need to log in
Is it possible to display the clickable path to a file in the terminal?
A specific Wishlist is this))
In the process of assembling the project, the following lines are displayed in the terminal:
Сборка компонента "CardsCarousel" (/usr/app/vueapp/src/webparts/CardsCarousel/entry.ts) завершена
/usr/app/vueapp/src/webparts/CardsCarousel/entry.ts
make it clickable like a hyperlink? And on click open for example Nautilus or open a file in VSCode. Answer the question
In order to leave comments, you need to log in
file:///usr/app/vueapp/src/webparts/CardsCarousel/entry.ts
urxvt terminal certainly knows how. He knows everything. For example, it has a standard extension -- matcher. You can try to configure something like this in ~/.Xresource
URxvt.perl-ext-common: default,matcher
# key bindings
URxvt.matcher.button: 1
URxvt.keysym.C-Delete: matcher:last
URxvt.keysym.M-Delete: matcher:list
# regexps
URxvt.matcher.pattern.1: (?:\\s)([\\~\\.]?\\/\{1,1\}[\\.\\w]\\S+)\\b
# launchers
URxvt.matcher.launcher.1: VSCode $1
URxvt.urlLauncher: xdg-open
# change the font highlight style
!URxvt.matcher.rend.1: Uline fg01
you can use alacritty
Hints
to edit the config, see more specifically: alacritty.yml#L458
as an example:
hints:
enabled:
- regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
command: xdg-open
post_processing: true
mouse:
enabled: true
mods: None
binding:
key: U
mods: Control|Shift
- regex: "/{0,}.(txt|ts)"
command: /usr/bin/code
post_processing: true
mouse:
enabled: true
mods: None
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question