Skip to content
Myr

Use the platform quote placeholder for {fzf:prompt}

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Every other entry in this table goes through {{.O}}; this one had the POSIX single quotes written in, so it could only pass off Windows.

authored by Cyrus · committed by Junegunn Choi · parent 63f6cfe · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal_test.go+1 added-1 removed
221 unmodified lines
222 // query flag is not removed after parsing, so it gets doubled223 // while the double q is invalid, it is useful here for testing purposes224 templateToOutput[`{q}`] = "{{.O}}" + query + "{{.O}}"225 templateToOutput[`{fzf:query}`] = "{{.O}}" + query + "{{.O}}"226 templateToOutput[`{fzf:action} {fzf:prompt}`] = "backward-delete-char-eof 'prompt'"226 templateToOutput[`{fzf:action} {fzf:prompt}`] = `backward-delete-char-eof {{.O}}prompt{{.O}}`227228 // IV. escaping placeholder229 templateToOutput[`\{}`] = `{}`230 templateToOutput[`\{q}`] = `{q}`
693 unmodified lines