[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Search & Replace - split "in current file" into separate plugin/tab
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2022-01-14 22:20:10
Message-ID: 11732339.vap1DhSgYV () unknownc4d9870202f1
[Download RAW message or body]

On Freitag, 14. Januar 2022 22:55:38 CET Christoph Cullmann (cullmann.io) wrote:
> On 2022-01-14 22:52, Alexander Neundorf wrote:
> > Hi,
> > 
> > (I know we had similar discussion a few years ago already).
> > I'd like to split the "Search in current file" into a separate
> > plugin/tab.
> > 
> > For "in current file", less options would be required.
> > All the "advanced" options are not necessary, so also the button to
> > toggle
> > between options and results is not necessary, and always the results
> > would be
> > visible.
> > The "Search" buttin, the "Use current documents folder" button, the
> > mode
> > combobox, the "Expand results" button, the "add new search tab" button
> > would
> > all not be necessary.
> > I would suggest that this would always search automatically when the
> > search
> > text is modified, without maximum file size.
> > I would also suggest that it searches automatically when switching to a
> > different file, i.e. always the search results for the current search
> > string
> > in the current file would be visible.
> > 
> > Together with this, I would suggest to remove the "In current file"
> > search
> > mode from the normal "Search and Replace", and also disable the
> > automatic
> > search in the current file when typing. To me, this would actually be
> > better
> > than it is now, since the automatic searching quite often dismissed my
> > search
> > results, while I actually wanted to keep them.
> > 
> > What do you think ?
> 
> I am not sure about this.
> This would make the "standard" in document search even more duplicated
> with the plugin.
> But perhaps others see this differently.
> 
> My normal working pattern is:
> 
> 1) for in document searches just using the search/replace of KTextEditor
> view
> 2) use the Kate level search plugin only for project wide searches
> 
> Perhaps others use it more like you, for both use cases.


I also use both.
What I don't like about Ctrl+F, is that it immediately jumps to the first match as soon as I 
start typing, i.e. I loose "focus". Also it doesn't show me how many matches there are in 
the document.
Actually I use Ctrl+F more as a "go to"-function, not to "learn" something about a file.

If I want to see how often/where/how some text appears in the document, the in-current-
file search of Search&Replace is more convenient. My cursor stays where it is in the file 
and it gives my an overview over the matches in this file.

Alex


[Attachment #3 (unknown)]

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On \
Freitag, 14. Januar 2022 22:55:38 CET Christoph Cullmann (cullmann.io) wrote:</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; On 2022-01-14 \
22:52, Alexander Neundorf wrote:</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; Hi,</p> \
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; </p> \
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; (I \
know we had similar discussion a few years ago already).</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; I'd like \
to split the &quot;Search in current file&quot; into a separate</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
plugin/tab.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; For &quot;in current file&quot;, less options would be required.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; All the \
&quot;advanced&quot; options are not necessary, so also the button to</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
toggle</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; between options and results is not necessary, and always the results</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; would \
be</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; visible.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; The \
&quot;Search&quot; buttin, the &quot;Use current documents folder&quot; button, \
the</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; mode</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; combobox, the &quot;Expand results&quot; button, the &quot;add new search \
tab&quot; button</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
would</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; all not be necessary.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; I would \
suggest that this would always search automatically when the</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
search</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; text is modified, without maximum file size.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; I would \
also suggest that it searches automatically when switching to a</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
different file, i.e. always the search results for the current search</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
string</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; in the current file would be visible.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; Together \
with this, I would suggest to remove the &quot;In current file&quot;</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
search</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; mode from the normal &quot;Search and Replace&quot;, and also disable the</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
automatic</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; search in the current file when typing. To me, this would actually be</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
better</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; than it is now, since the automatic searching quite often dismissed my</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; \
search</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
&gt; results, while I actually wanted to keep them.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; &gt; What do \
you think ?</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; I am \
not sure about this.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; This would \
make the &quot;standard&quot; in document search even more duplicated</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; with the \
plugin.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
But perhaps others see this differently.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; My normal \
working pattern is:</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 1) for in \
document searches just using the search/replace of KTextEditor</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; view</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 2) use the \
Kate level search plugin only for project wide searches</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; Perhaps \
others use it more like you, for both use cases.</p> <br /><br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I also use \
both.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">What \
I don't like about Ctrl+F, is that it immediately jumps to the first match as soon as \
I start typing, i.e. I loose &quot;focus&quot;. Also it doesn't show me how many \
matches there are in the document.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Actually I use \
Ctrl+F more as a &quot;go to&quot;-function, not to &quot;learn&quot; something about \
a file.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If I want to see \
how often/where/how some text appears in the document, the in-current-file search of \
Search&amp;Replace is more convenient. My cursor stays where it is in the file and it \
gives my an overview over the matches in this file.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Alex</p> <br \
/></body> </html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic