From 60645b1c112f9591db0939a623a1b48fadd1f4ac Mon Sep 17 00:00:00 2001 From: Yu Cong Date: Tue, 11 Nov 2025 13:54:04 +0800 Subject: [PATCH] add zed tasks --- .gitignore | 3 ++- .zed/tasks.json | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .zed/tasks.json diff --git a/.gitignore b/.gitignore index a6c9518..1d796db 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ .vscode __pycache__ notes.* -!notes.tex \ No newline at end of file +!notes.tex +!.zed/* \ No newline at end of file diff --git a/.zed/tasks.json b/.zed/tasks.json new file mode 100644 index 0000000..7500c78 --- /dev/null +++ b/.zed/tasks.json @@ -0,0 +1,25 @@ +// Static tasks configuration. +// +[ + { + "label": "forward_search", + "command": "/Applications/Skim.app/Contents/SharedSupport/displayline -r -z -b $ZED_ROW $ZED_DIRNAME/$ZED_STEM.pdf", + "allow_concurrent_runs": false, + "reveal": "never", + "hide": "always" + }, + { + "label": "pdflatex_view", + "command": "cd \"$ZED_DIRNAME\" && pdflatex -shell-escape -synctex=-1 \"$ZED_STEM\" && /Applications/Skim.app/Contents/SharedSupport/displayline -r -z -b $ZED_ROW \"$ZED_STEM\".pdf", + "allow_concurrent_runs": false, + "reveal": "no_focus", + "hide": "on_success" + }, + { + "label": "latexmk_view", + "command": "cd \"$ZED_DIRNAME\" && latexmk -pdf \"$ZED_STEM\" && /Applications/Skim.app/Contents/SharedSupport/displayline -r -z -b $ZED_ROW \"$ZED_STEM\".pdf", + "allow_concurrent_runs": false, + "reveal": "no_focus", + "hide": "on_success" + } +] \ No newline at end of file