Skip to content

Remove deprecated ClaudePreview* command aliases #59

@Cannon07

Description

@Cannon07

Motivation

lua/code-preview/init.lua defines five deprecated aliases via deprecated_alias():

  • ClaudePreviewInstallHooksCodePreviewInstallClaudeCodeHooks
  • ClaudePreviewUninstallHooksCodePreviewUninstallClaudeCodeHooks
  • ClaudePreviewCloseDiffCodePreviewCloseDiff
  • ClaudePreviewStatusCodePreviewStatus
  • ClaudePreviewToggleVisibleOnlyCodePreviewToggleVisibleOnly

Comment in code: Deprecated aliases (remove after one release cycle). They have warned on every invocation for long enough; time to remove.

Scope

  • Delete the deprecated_alias helper and its five invocations from lua/code-preview/init.lua.
  • Verify there are no internal references (tests, docs, CLAUDE.md) to the old names.
  • Mention the removal in release notes for the next minor version.

Out of scope

  • Any other API cleanup.

Acceptance

  • Old commands no longer exist; :ClaudePreviewStatus returns E492: Not an editor command.
  • New commands continue to work unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions