From ead302981cc9d9219e58c1517921e9f2d68a6b6e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 20 Jul 2025 10:52:29 +0900 Subject: Add support for {*n} and {*nf} placeholder Close #4458 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal.go') diff --git a/src/terminal.go b/src/terminal.go index 748a2dfc..95977614 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -67,7 +67,7 @@ const maxFocusEvents = 10000 const blockDuration = 1 * time.Second func init() { - placeholder = regexp.MustCompile(`\\?(?:{[+*sfr]*[0-9,-.]*}|{q(?::s?[0-9,-.]+)?}|{fzf:(?:query|action|prompt)}|{\+?f?nf?})`) + placeholder = regexp.MustCompile(`\\?(?:{[+*sfr]*[0-9,-.]*}|{q(?::s?[0-9,-.]+)?}|{fzf:(?:query|action|prompt)}|{[+*]?f?nf?})`) whiteSuffix = regexp.MustCompile(`\s*$`) offsetComponentRegex = regexp.MustCompile(`([+-][0-9]+)|(-?/[1-9][0-9]*)`) offsetTrimCharsRegex = regexp.MustCompile(`[^0-9/+-]`) -- cgit v1.2.3