- Implemented symlink creation for all markdown files in cursor/commands to ~/.cursor/commands.
- Added a cleanup function to remove stale symlinks in ~/.cursor/commands that no longer point to existing files.
- Updated the configuration process to include cleanup of stale symlinks when setting up the cursor editor.
This update reorganizes the command parsing logic for better clarity and
maintains backward compatibility. The help output has been enhanced to
provide clearer usage instructions, including support for specifying
the editor in either argument position. Additionally, error handling
has been improved for missing editor specifications and command
requirements.
The `cursor` CLI tool started printing some info about outdated version before clearing the screen with ANSI escape sequences. Hence we need to filter that out when dumping the list of extensions to a lock file.
Cursor can now install extensions via ID through it's `cursor` CLI command. So let's do that by default, and fallback to downloading vsix files if the extension ID approach fails, like we do with VSCode.