[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:       Kåre_Särs <kare.sars () mailbox ! org>
Date:       2022-01-16 17:45:45
Message-ID: 2493646.Lt9SDvczpP () sars-xps-13-9370
[Download RAW message or body]

Hi,

On fredag 14 januari 2022 23:52:16 EET 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.
This I do not agree with... that would just create more confusion... Would look like we then 
have 3 search tools ;)
 
> 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.
(Let's assume we do not split out search in current file then...) True the "advanced/folder" 
options could be automatically hidden and the toggle advanced/folder button could be 
disabled.

> 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.
The search button is a very convenient way to say take the time you need when searching 
a huge file (in chunks). So I would say we need that.

The expand results button could also be disabled as we only have one file yes, but the "add 
tab" button is there for you to add a new search tab that might have different search 
settings

> 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.
That is an interesting idea, but why not just search in open files and bam you have 
everything....

> 
> 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.

For me the search as you type is totally essential in all the search modes. I use regular 
expressions quite heavily and without the immediate feedback that I get with search as 
you type, for the typed expression, I would have a really hard time forming the correct 
regex before hitting enter to start the search in folder/project.

What do you think about having a sub-menu in the search-combo-context-menu with the 
options to disable "search as you type" in the different search modes? That would be quite 
easily doable. Another option would be to put those options in a plugin config page... 

Cheers, 
   Kåre


[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;">Hi,</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On fredag \
14 januari 2022 23:52:16 EET Alexander Neundorf wrote:</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; Hi,</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 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; I'd like to \
split the &quot;Search in current file&quot; into a separate plugin/tab.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">This I do not \
agree with... that would just create more confusion... Would look like we then have 3 \
search tools ;)</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&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; All the \
&quot;advanced&quot; options are not necessary, so also the button to toggle</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; between \
options and results is not necessary, and always the results would</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; be \
visible.</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">(Let's \
assume we do not split out search in current file then...) True the \
&quot;advanced/folder&quot; options could be automatically hidden and the toggle \
advanced/folder button could be disabled.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; The \
&quot;Search&quot; buttin, the &quot;Use current documents folder&quot; button, the \
mode</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
combobox, the &quot;Expand results&quot; button, the &quot;add new search tab&quot; \
button would</p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; \
all not be necessary.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The search button \
is a very convenient way to say take the time you need when searching a huge file (in \
chunks). So I would say we need that.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The expand results \
button could also be disabled as we only have one file yes, but the &quot;add \
tab&quot; button is there for you to add a new search tab that might have different \
search settings</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; I would \
suggest that this would always search automatically when the search</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; text is \
modified, without maximum file size.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&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; different \
file, i.e. always the search results for the current search string</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; in the \
current file would be visible.</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">That is an \
interesting idea, but why not just search in open files and bam you have \
everything....</p> <br /><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; Together with \
this, I would suggest to remove the &quot;In current file&quot; search</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; mode from the \
normal &quot;Search and Replace&quot;, and also disable the automatic</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; search in the \
current file when typing. To me, this would actually be better</p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&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; search \
results, while I actually wanted to keep them.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">For me the search \
as you type is totally essential in all the search modes. I use regular expressions \
quite heavily and without the immediate feedback that I get with search as you type, \
for the typed expression, I would have a really hard time forming the correct regex \
before hitting enter to start the search in folder/project.</p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">What do you think \
about having a sub-menu in the search-combo-context-menu with the options to disable \
&quot;search as you type&quot; in the different search modes? That would be quite \
easily doable. Another option would be to put those options in a plugin config \
page... </p> <br /><p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Cheers, </p> <p \
style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&nbsp;&nbsp; \
Kåre</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