angular-switcher 0.1.0

Switch between Angular component files (.ts, .html, styles, .spec.ts) from the Zed editor with a customizable keybinding.
Documentation
# angular-switcher configuration.
#
# Place this file at one of:
#   - $XDG_CONFIG_HOME/angular-switcher/config.toml  (global default)
#   - .angular-switcher.toml in your project root    (project override)
#   - any path passed via --config
#
# Every field is optional. Anything omitted falls back to the built-in defaults
# below.

[cycle]
# Order the cycle key advances through. Each entry must reference a target
# defined under [targets.*]. Reorder to taste — e.g. ["ts", "html", "style"]
# if you don't write specs.
order = ["ts", "html", "style", "spec"]

# Wrap from the last entry back to the first when cycling forward (and vice
# versa with --reverse).
wrap = true

# When the next target has no sibling on disk, skip past it instead of erroring.
skip_missing = true

[targets.ts]
extensions = ["ts"]
# Without this, *.spec.ts would also match the "ts" target. The exclude tells
# the resolver to leave spec files for the "spec" target.
exclude_suffixes = ["spec.ts"]

[targets.html]
extensions = ["html"]

[targets.style]
# All recognised style extensions. The resolver tries them in `preference`
# order until one exists on disk.
extensions = ["scss", "css", "sass", "less"]
preference = ["scss", "css", "sass", "less"]

[targets.spec]
extensions = ["spec.ts"]

[naming]
# When the current file matches no target (e.g. a plain .ts that isn't a
# component), fall back to the filename stem so the cycle still has a basename
# to work from. Disable to make non-component files exit with an error.
fallback_to_stem = true