Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make swap-quote-keys better

Open
#61 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
zsh
Domain
cli

Research direction

Locate the swap-quote-keys definition and reproduce the reported behavior with both single-line and multi-line input. Compare the current behavior with the alternate zsh snippet in the issue; done means multi-line input uses the alternate handling without duplicate lines for single-line input.

Written by the indexing model from the issue text.

Description

For some reason I need two ^Qs, and it doesn't work with multi-line editing.

An alternate version like:

  local c LBUFFER=$PREBUFFER$LBUFFER

  for (( c = $#LBUFFER; c > 0; c-- )); do
    if [[ $LBUFFER[c] == \' ]]; then
      LBUFFER[c]=\"
      break
    elif [[ $LBUFFER[c] == \" ]]; then
      LBUFFER[c]=\'
      break
    fi
  done

  print -rz -- $LBUFFER$RBUFFER
  zle send-break

would, but should change that so that it only uses that way if it's multiline, otherwise with single-line input, the send-break causes duplicate lines.

Dominant language
Perl
Stars
54
Forks
5
Avg merge
6d 14h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Julian/dotfiles

All issues in Julian/dotfiles

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.