Skip to content

Add setup recipe for code editors (Arch-only) - #152

Open
yukazakiri wants to merge 2 commits into
snowarch:mainfrom
yukazakiri:setup-code-editors-recipe
Open

Add setup recipe for code editors (Arch-only)#152
yukazakiri wants to merge 2 commits into
snowarch:mainfrom
yukazakiri:setup-code-editors-recipe

Conversation

@yukazakiri

@yukazakiri yukazakiri commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a new /setup-editors recipe at scripts/setup/editors.sh that:

  • Prompts the user to choose one editor/IDE to install.
  • Supports Arch-based installs for:
    • VS Code (visual-studio-code-bin, AUR)
    • OSS Code (code, AUR)
    • Zed (zed-bin, AUR)
    • Cursor (cursor-bin, AUR)
    • Neovim + LazyVim starter
  • Detects non-Arch distros first, notifies users that support is coming soon.
  • Keeps contribution simple by using a single-file, easy-to-edit editor list.

Testing

  • inir restart && inir logs — no errors
  • Tested the specific feature path that changed
  • Both panel families checked (if shared code changed)

Notes

Closes #

…eporting

- install_arch now routes all packages through paru/yay

- prefer paru over yay when both are available

- add TRACE=1 debug mode

- add developer-friendly error trap with stack trace

- pause terminal on error instead of auto-closing
@yukazakiri

yukazakiri commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

Updated this PR with the following changes:

  • AUR-only install: install_arch now routes all packages (repo + AUR) through paru or yay, never pacman directly. This simplifies the flow and lets the helper handle everything consistently.
  • Prefer paru over yay: when both are installed, paru is chosen first.
  • error handling: added a detailed error trap that prints exit code, line number, file, function, failed command, and a full stack trace. No more cryptic "error on line 110".
  • Pause on error: the terminal now waits for Enter before closing when something fails, so you can actually read the error.
  • TRACE mode: set TRACE=1 before running to enable bash set -x for full command debugging.
  • Neovim entry fix: moved neovim and git to the AUR column so they are installed via the AUR helper too.

Please re-test /setup-editors on your Arch machine and let me know if the error messages are clear enough now.

@snowarch

Copy link
Copy Markdown
Owner

Thanks @yukazakiri — same pattern, looks good. Queued behind #165 for an install test. The Arch-only scope with a "coming soon" path for other distros is fine for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants