File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ use std::{
10
10
io:: { self , StdoutLock , Write } ,
11
11
} ;
12
12
13
- use crate :: { app_state:: AppState , exercise:: Exercise , term:: progress_bar, MAX_EXERCISE_NAME_LEN } ;
13
+ use crate :: {
14
+ app_state:: AppState ,
15
+ exercise:: Exercise ,
16
+ term:: { progress_bar, terminal_file_link} ,
17
+ MAX_EXERCISE_NAME_LEN ,
18
+ } ;
14
19
15
20
const MAX_SCROLL_PADDING : usize = 5 ;
16
21
// +1 for column padding.
@@ -190,7 +195,7 @@ impl<'a> ListState<'a> {
190
195
stdout. write_all ( exercise. name . as_bytes ( ) ) ?;
191
196
stdout. write_all ( & SPACE [ ..self . name_col_width + 2 - exercise. name . len ( ) ] ) ?;
192
197
193
- stdout . write_all ( exercise. path . as_bytes ( ) ) ?;
198
+ terminal_file_link ( stdout , exercise. path , Color :: Blue ) ?;
194
199
195
200
next_ln_overwrite ( stdout) ?;
196
201
stdout. queue ( ResetColor ) ?;
You can’t perform that action at this time.
0 commit comments