Skip to content

Fix/editor whitespace#53

Open
chinar-amrutkar wants to merge 2 commits intowedow:masterfrom
chinar-amrutkar:fix/editor-whitespace
Open

Fix/editor whitespace#53
chinar-amrutkar wants to merge 2 commits intowedow:masterfrom
chinar-amrutkar:fix/editor-whitespace

Conversation

@chinar-amrutkar
Copy link

Summary

The previous quoting "${EDITOR:-vi}" caused issues when EDITOR contains whitespace (e.g., code -w). This removes the quotes around the variable expansion so word splitting works correctly.

Fix

  • Changed "${EDITOR:-vi}" to ${EDITOR:-vi} in plugins/ticket-edit

Testing

  • Before: tk edit with EDITOR="code -w" would fail with code -w: command not found
  • After: Word splitting correctly parses the command and arguments

Fixes #36

The previous quoting "${EDITOR:-vi}" caused issues when EDITOR
contains whitespace (e.g., 'code -w'). Removed the quotes around
the variable expansion so word splitting works correctly.

Fixes wedow#36
@chinar-amrutkar chinar-amrutkar force-pushed the fix/editor-whitespace branch from 76ebc02 to 4ada2fc Compare March 9, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handle $EDITOR that has whitespace

1 participant