add zed tasks

This commit is contained in:
2025-11-11 13:54:04 +08:00
parent 638decd3d1
commit 60645b1c11
2 changed files with 27 additions and 1 deletions

3
.gitignore vendored
View File

@@ -12,4 +12,5 @@
.vscode .vscode
__pycache__ __pycache__
notes.* notes.*
!notes.tex !notes.tex
!.zed/*

25
.zed/tasks.json Normal file
View File

@@ -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"
}
]