Bug 384766 - Vi search and replace command does not accept line range
Summary: Vi search and replace command does not accept line range
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: Vi Input Mode (other bugs)
Version First Reported In: 17.08.1
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-16 10:46 UTC by Jonathan Verner
Modified: 2020-12-25 15:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Video showing substitution with line range (65.49 KB, image/gif)
2020-12-25 15:18 UTC, Jan Paul Batrina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Verner 2017-09-16 10:46:32 UTC
In vi, when using the search & replace command (s/Foo/Bar/) one can prepend a line range to specify which lines should be processed (e.g. 0,$s/Foo/Bar/ means apply to all lines; 0,10s/Foo/Bar/ means apply only to the first 11 lines). However, in Kate the command seems to be applied only to the current line whether or not a line range is specified.
Comment 1 Jan Paul Batrina 2020-12-25 15:18:45 UTC
Created attachment 134325 [details]
Video showing substitution with line range

It seems to be already implemented (at the very least on version 20.08.1)