Compare commits

...

6 Commits

Author SHA1 Message Date
wzy 55cfa54c5c
Merge ea4685a96f into 6ea205dc14 2025-03-10 10:13:46 -03:00
Shohei YOSHIDA 6ea205dc14
Merge pull request #1125 from egorlem/TS-5.7-5.8
Update TypeScript completion from 5.6 to 5.8
2025-03-04 16:26:40 +09:00
guesswhozzz fc979f7a3e Remove unnecessary addition of flags in commands 2025-03-04 09:15:10 +03:00
guesswhozzz 42e9e1e563 Update TypeScript completion to version 5.8
patch note: https://devblogs.microsoft.com/typescript/announcing-typescript-5-8/
2025-03-03 16:35:36 +03:00
guesswhozzz ee50f24411 Update TypeScript completion to version 5.7
patch note: https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/
2025-03-03 16:16:40 +03:00
Wu, Zhenyu ea4685a96f
Add cgdb completion 2024-05-10 10:16:27 +08:00
2 changed files with 35 additions and 5 deletions

28
src/_cgdb Normal file
View File

@ -0,0 +1,28 @@
#compdef cgdb
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for cgdb (https://github.com/cgdb/cgdb).
# Modified from rejected https://github.com/cgdb/cgdb/pull/337/
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Wu, Zhenyu <wuzhenyu@ustc.edu>
#
# ------------------------------------------------------------------------------
# cgdb -- <TAB>
if ((${${words[1, CURRENT]}[(I)--]})) && [[ ${words[CURRENT]} != -- ]]; then
_gdb
# cgdb <TAB> or cgdb <TAB> -- or cgdb --<TAB>
else
_arguments -s \
"(- : *)"{-v,--version}"[Print version information and then exit.]" \
"(- : *)"{-h,--help}"[Print help (this message) and then exit.]" \
-d"[Set debugger to use.]" \
-w"[Wait for debugger to attach before starting.]" \
--
fi

View File

@ -24,7 +24,7 @@
# Description
# -----------
#
# Completion script for tsc v5.6.3. (https://www.typescriptlang.org/)
# Completion script for tsc v5.8.2. (https://www.typescriptlang.org/)
#
# ------------------------------------------------------------------------------
# Authors
@ -35,12 +35,12 @@
# ------------------------------------------------------------------------------
local -a module_types=(
none commonjs amd umd system es6/es2015 es2020 es2022 esnext node16 nodenext preserve
)
none commonjs amd umd system es6/es2015 es2020 es2022 esnext node16 node18 nodenext preserve
)
local -a bundle_libraries=(
es5 es6/es2015 es7/es2016 es2017 es2018 es2019 es2020 es2021 es2022
es2023 esnext dom dom.iterable dom.asynciterable webworker
es2023 es2024 esnext dom dom.iterable dom.asynciterable webworker
webworker.importscripts webworker.iterable webworker.asynciterable
scripthost es2015.core es2015.collection es2015.generator
es2015.iterable es2015.promise es2015.proxy es2015.reflect
@ -62,7 +62,7 @@ local -a bundle_libraries=(
)
local -a targets=(
es5 es6/es2015 es2016 es2017 es2018 es2019 es2020 es2021 es2022 es2023 esnext
es5 es6/es2015 es2016 es2017 es2018 es2019 es2020 es2021 es2022 es2023 es2024 esnext
)
local -a watch_modes=(
@ -189,6 +189,8 @@ local -a opts=(
'--synchronousWatchDirectory[Synchronously call callbacks and update the state of directory watchers on platforms]'
'--excludeDirectories[Remove a list of directories from the watch process]:dirs:_files -/'
"--excludeFiles[Remove a list of files from the watch mode's processing]:files:_files"
"--libReplacement[Enable library replacement]"
"--erasableSyntaxOnly[Ensures that runtime constructs which are not part of ECMAScript are not allowed]"
'*:: :_files' \
)