File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ pub fn print_error(error_message: String) {
1313 println ! ( "[ERR] {}" , error_message) ;
1414}
1515
16+ // TODO: Maybe skim related could be combined into one module.
1617pub fn get_params < ' a > ( ) -> ( SkimOptions < ' a > , Option < Receiver < Arc < dyn SkimItem > > > ) {
1718 // TODO: use cat when bat is unavailable
18- let preview_command = "bat --style=numbers --color=always --highlight- line $(bat Makefile | grep -nE '^{}' | sed -e 's/:.*//g') Makefile";
19+ let preview_command = r" line= $(bat Makefile | grep -nE '^{}\s*: ' | sed -e 's/:.*//g'); bat --style=numbers --color=always --line-range $line: --highlight-line $line Makefile";
1920 // TODO: hide fzf window when fzf-make terminated
2021 let options = SkimOptionsBuilder :: default ( )
2122 . height ( Some ( "50%" ) )
You can’t perform that action at this time.
0 commit comments