mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-23 21:58:27 +00:00
Add path to symlinks
This commit is contained in:
parent
03ecb8c9e1
commit
c75bbf7f79
16
src/file.rs
16
src/file.rs
@ -79,12 +79,12 @@ impl<'a> File<'a> {
|
|||||||
let ext = self.ext.clone().unwrap();
|
let ext = self.ext.clone().unwrap();
|
||||||
match ext.as_slice() {
|
match ext.as_slice() {
|
||||||
"class" => vec![self.path.with_extension("java")], // Java
|
"class" => vec![self.path.with_extension("java")], // Java
|
||||||
"elc" => vec![self.path.with_extension("el")], // Emacs Lisp
|
"css" => vec![self.path.with_extension("sass"), self.path.with_extension("less")], // SASS, Less
|
||||||
"hi" => vec![self.path.with_extension("hs")], // Haskell
|
"elc" => vec![self.path.with_extension("el")], // Emacs Lisp
|
||||||
"o" => vec![self.path.with_extension("c"), self.path.with_extension("cpp")], // C, C++
|
"hi" => vec![self.path.with_extension("hs")], // Haskell
|
||||||
"pyc" => vec![self.path.with_extension("py")], // Python
|
"js" => vec![self.path.with_extension("coffee"), self.path.with_extension("ts")], // CoffeeScript, TypeScript
|
||||||
"js" => vec![self.path.with_extension("coffee"), self.path.with_extension("ts")], // CoffeeScript, TypeScript
|
"o" => vec![self.path.with_extension("c"), self.path.with_extension("cpp")], // C, C++
|
||||||
"css" => vec![self.path.with_extension("sass"), self.path.with_extension("less")], // SASS, Less
|
"pyc" => vec![self.path.with_extension("py")], // Python
|
||||||
|
|
||||||
"aux" => vec![self.path.with_extension("tex")], // TeX: auxiliary file
|
"aux" => vec![self.path.with_extension("tex")], // TeX: auxiliary file
|
||||||
"bbl" => vec![self.path.with_extension("tex")], // BibTeX bibliography file
|
"bbl" => vec![self.path.with_extension("tex")], // BibTeX bibliography file
|
||||||
@ -195,8 +195,8 @@ impl<'a> File<'a> {
|
|||||||
// that reason anyway.
|
// that reason anyway.
|
||||||
|
|
||||||
match link_target {
|
match link_target {
|
||||||
Ok(file) => format!("{} {}", GREY.paint("=>"), file.file_colour().paint(filename.as_slice())),
|
Ok(file) => format!("{} {}{}{}", GREY.paint("=>"), Cyan.paint(target_path.dirname_str().unwrap()), Cyan.paint("/"), file.file_colour().paint(filename.as_slice())),
|
||||||
Err(_) => format!("{} {}", Red.paint("=>"), Red.underline().paint(filename.as_slice())),
|
Err(_) => format!("{} {}", Red.paint("=>"), Red.underline().paint(filename.as_slice())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user