Make swap-quote-keys better
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Julian/dotfiles
-
g whatsnew should ignore HEAD (use the previous commit) if HEAD is tagged with the latest versionOpen
Difficulty 2/5 Half a day Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
fix(api): API v3 Product Read ignores request language (lc) for sample products and image URLsPossibly taken @muntasir-396 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openfoodfacts/openfoodfacts-server#15042 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
libwww-perl/URI#214 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
dekobon/big-code-analysis#1644 ·
Maintainers usually reply within 1 day
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
inverse-inc/packetfence#9549 ·
Maintainers usually reply within 1 day