[Lazarus] IDE Spotter

classic Classic list List threaded Threaded
38 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list

Hello,

I've polished something that was started during the Lazarus Pro conference
in Bonn the last days, the IDE Spotter (this is a "Working Title").

The idea is to have a command box such as it exists in Atom or Visual code
studio.

Press ALt-Shift-P (or Meta-Shift-P on Mac) to access it.

Type the command you wish (e.g. open), navigate with arrows or click on the
correct match. The command will be executed. You can type multiple words.
all parts must be matched (and are colorized).

You can find the package under 'components/idespotter' in SVN.
It should also work under 1.8.4/2.0rc1 for those that want to try it.

There are some options under Tools - Options - Environment - IDE Spotter.

Ideas for improvements are currently:
- Shrink window list if the match list is "small".
- Search in recent files (projects/units/packages)
- ... ?

Please testdrive it.
Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).

Thanks go to James Ralston for pitching the idea, and Mattias for including it in SVN !

Michael.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:
>
> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).

Unit IDESpotterOptions missing in svn?
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list


On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:

> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:
>>
>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).
>
> Unit IDESpotterOptions missing in svn?

Ahaha.... The infamous 'forgot to add units' problem in SVN :)

I added them, thanks !

Michael.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
Am 23.09.2018 um 15:27 schrieb Michael Van Canneyt:

>
>
> On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:
>
>> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:
>>>
>>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).
>>
>> Unit IDESpotterOptions missing in svn?
>
> Ahaha.... The infamous 'forgot to add units' problem in SVN :)
>
> I added them, thanks !

Seems not work on windows though, even after I assigned another shortcut.

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list


On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:

> Am 23.09.2018 um 15:27 schrieb Michael Van Canneyt:
>>
>>
>> On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:
>>
>>> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:
>>>>
>>>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).
>>>
>>> Unit IDESpotterOptions missing in svn?
>>
>> Ahaha.... The infamous 'forgot to add units' problem in SVN :)
>>
>> I added them, thanks !
>
> Seems not work on windows though, even after I assigned another shortcut.
Hm. What does not work, showing the form ?

It's also in the menu under View - IDE internals - IDE spotter.
Does it work then ?

Strange, I tested both Mac and Linux.

Michael.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Sun, 23 Sep 2018 17:23:46 +0200
Florian Klämpfl via Lazarus <[hidden email]> wrote:

> Am 23.09.2018 um 15:27 schrieb Michael Van Canneyt:
> >
> >
> > On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:
> >  
> >> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:  
> >>>
> >>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).  
> >>
> >> Unit IDESpotterOptions missing in svn?  
> >
> > Ahaha.... The infamous 'forgot to add units' problem in SVN :)
> >
> > I added them, thanks !  
>
> Seems not work on windows though, even after I assigned another shortcut.

If you are using a docked IDE, I just fixed positioning the spotter
for that case.

Mattias
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
Am 23.09.2018 um 18:27 schrieb Mattias Gaertner via Lazarus:

> On Sun, 23 Sep 2018 17:23:46 +0200
> Florian Klämpfl via Lazarus <[hidden email]> wrote:
>
>> Am 23.09.2018 um 15:27 schrieb Michael Van Canneyt:
>>>
>>>
>>> On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:
>>>  
>>>> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:  
>>>>>
>>>>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).  
>>>>
>>>> Unit IDESpotterOptions missing in svn?  
>>>
>>> Ahaha.... The infamous 'forgot to add units' problem in SVN :)
>>>
>>> I added them, thanks !  
>>
>> Seems not work on windows though, even after I assigned another shortcut.
>
> If you are using a docked IDE, I just fixed positioning the spotter
> for that case.

Indeed, this fixed it, thanks.

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list


On Sun, 23 Sep 2018, Mattias Gaertner via Lazarus wrote:

> On Sun, 23 Sep 2018 17:23:46 +0200
> Florian Klämpfl via Lazarus <[hidden email]> wrote:
>
>> Am 23.09.2018 um 15:27 schrieb Michael Van Canneyt:
>> >
>> >
>> > On Sun, 23 Sep 2018, Florian Klämpfl via Lazarus wrote:
>> >
>> >> Am 23.09.2018 um 13:16 schrieb Michael Van Canneyt via Lazarus:
>> >>>
>> >>> Please testdrive it. Ideas for improvements/comments/bugreports welcome (well, the latter not so much ;)).
>> >>
>> >> Unit IDESpotterOptions missing in svn?
>> >
>> > Ahaha.... The infamous 'forgot to add units' problem in SVN :)
>> >
>> > I added them, thanks !
>>
>> Seems not work on windows though, even after I assigned another shortcut.
>
> If you are using a docked IDE, I just fixed positioning the spotter
> for that case.
Ah. That's what your change meant...

Good you left a comment now, many thanks! :)

(I guess everyone now guessed, I don't use the docking IDE...)

Michael.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
On Sun, Sep 23, 2018 at 2:28 PM Michael Van Canneyt via Lazarus
<[hidden email]> wrote:
>
> (I guess everyone now guessed, I don't u

I thought that I was the last one not using a docked IDE :)

Marcos Douglas
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
On 9/23/2018 11:38 AM, Marcos Douglas B. Santos via Lazarus wrote:
> On Sun, Sep 23, 2018 at 2:28 PM Michael Van Canneyt via Lazarus
> <[hidden email]> wrote:
>> (I guess everyone now guessed, I don't u
> I thought that I was the last one not using a docked IDE :)
Docked IDE (unless the term is used differently from how I understand
it) doesn't make much sense if you have a multi-screen setup, IMHO...

Ralf

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
Am 24.09.2018 um 02:42 schrieb Ralf Quint via Lazarus:
> On 9/23/2018 11:38 AM, Marcos Douglas B. Santos via Lazarus wrote:
>> On Sun, Sep 23, 2018 at 2:28 PM Michael Van Canneyt via Lazarus
>> <[hidden email]> wrote:
>>> (I guess everyone now guessed, I don't u
>> I thought that I was the last one not using a docked IDE :)
> Docked IDE (unless the term is used differently from how I understand
> it) doesn't make much sense if you have a multi-screen setup, IMHO...
It does if the second screen is not mainly for development. E.g. I
myself use both Lazarus and Visual Studio on my primary monitor while I
have the browser open on the other. And sometimes if I need to look at
two documents at once I can open a new editor window in both IDEs and
move it to the second screen to better compare them or whatever I need
to do. :)

Regards,
Sven
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
On 9/23/2018 10:39 PM, Sven Barth via Lazarus wrote:

> Am 24.09.2018 um 02:42 schrieb Ralf Quint via Lazarus:
>> On 9/23/2018 11:38 AM, Marcos Douglas B. Santos via Lazarus wrote:
>>> On Sun, Sep 23, 2018 at 2:28 PM Michael Van Canneyt via Lazarus
>>> <[hidden email]> wrote:
>>>> (I guess everyone now guessed, I don't u
>>> I thought that I was the last one not using a docked IDE :)
>> Docked IDE (unless the term is used differently from how I understand
>> it) doesn't make much sense if you have a multi-screen setup, IMHO...
> It does if the second screen is not mainly for development. E.g. I
> myself use both Lazarus and Visual Studio on my primary monitor while
> I have the browser open on the other. And sometimes if I need to look
> at two documents at once I can open a new editor window in both IDEs
> and move it to the second screen to better compare them or whatever I
> need to do. :)
Well, I just like to move the separate windows across the screens, basic
IDE with project info on the default screen, usually the
debugging.messaging stuff on it as well, and the editor windows on the
second one. For a time, I even had a 3 screen setup, with the
application output (or research browser, depending on the development
stage) on the third screen...

Ralf

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Sun, 23 Sep 2018 17:42:45 -0700
Ralf Quint via Lazarus <[hidden email]> wrote:

> On 9/23/2018 11:38 AM, Marcos Douglas B. Santos via Lazarus wrote:
> > On Sun, Sep 23, 2018 at 2:28 PM Michael Van Canneyt via Lazarus
> > <[hidden email]> wrote:  
> >> (I guess everyone now guessed, I don't u  
> > I thought that I was the last one not using a docked IDE :)  
> Docked IDE (unless the term is used differently from how I understand
> it) doesn't make much sense if you have a multi-screen setup, IMHO...

Docked <> SDI.

Docked means you can attach windows together. You can still
distribute windows over various screens.

Mattias
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
Tested IDE Spotter on Linux / GTK2.
Looks promising although it leaks memory.

Regards,
Juha

---
Heap dump by heaptrc unit
4466835 memory blocks allocated : 800495659/813452344
4464534 memory blocks freed     : 800391839/813341848
2301 unfreed memory blocks : 103820
True heap size : 4259840
True free heap : 3778816
Should be : 3854816
Call trace for block $00007F710BF15940 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645C680 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645C800 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645C8C0 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645B300 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645CD40 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645A7C0 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
  $0000000000431B9F
  $00000000005D8DD7 line 5425 of include/wincontrol.inc
  $0000000000667557 line 528 of include/customedit.inc
  $000000000082BCE0 line 112 of lclmessageglue.pas
Call trace for block $00007F712645CF80 size 20
  $00000000013CB5CC line 179 of frmspotter.pas
  $0000000000667CE0 line 652 of include/customedit.inc
  $0000000000667C5A line 644 of include/customedit.inc
  $00000000005E7E74 line 1203 of include/control.inc
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list


On Mon, 24 Sep 2018, Juha Manninen via Lazarus wrote:

> Tested IDE Spotter on Linux / GTK2.
> Looks promising although it leaks memory.

Hm. How to fix this ? because line 179 is:

if SpotterForm=Nil then
   begin
   SpotterForm:=TSpotterForm.Create(Application);

The form is owned by the TApplication instance. If the application is freed,
the form should also be freed. That's TComponent 101...

From your stack trace, it would seem that the form is created multiple
times, which is also strange, since it's a singleton pattern.

The form is set to do coHide on close, so it should not be freed on close.

Michael.

>
> Regards,
> Juha
>
> ---
> Heap dump by heaptrc unit
> 4466835 memory blocks allocated : 800495659/813452344
> 4464534 memory blocks freed     : 800391839/813341848
> 2301 unfreed memory blocks : 103820
> True heap size : 4259840
> True free heap : 3778816
> Should be : 3854816
> Call trace for block $00007F710BF15940 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645C680 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645C800 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645C8C0 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645B300 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645CD40 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645A7C0 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
>  $0000000000431B9F
>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>  $0000000000667557 line 528 of include/customedit.inc
>  $000000000082BCE0 line 112 of lclmessageglue.pas
> Call trace for block $00007F712645CF80 size 20
>  $00000000013CB5CC line 179 of frmspotter.pas
>  $0000000000667CE0 line 652 of include/customedit.inc
>  $0000000000667C5A line 644 of include/customedit.inc
>  $00000000005E7E74 line 1203 of include/control.inc
> --
> _______________________________________________
> Lazarus mailing list
> [hidden email]
> https://lists.lazarus-ide.org/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list


The stack trace is highly misleading.

I applied a possible fix; Please test and report.

Michael.

On Mon, 24 Sep 2018, Michael Van Canneyt via Lazarus wrote:

>
>
> On Mon, 24 Sep 2018, Juha Manninen via Lazarus wrote:
>
>> Tested IDE Spotter on Linux / GTK2.
>> Looks promising although it leaks memory.
>
> Hm. How to fix this ? because line 179 is:
>
> if SpotterForm=Nil then
>   begin
>   SpotterForm:=TSpotterForm.Create(Application);
>
> The form is owned by the TApplication instance. If the application is freed,
> the form should also be freed. That's TComponent 101...
>
> From your stack trace, it would seem that the form is created multiple
> times, which is also strange, since it's a singleton pattern.
>
> The form is set to do coHide on close, so it should not be freed on close.
>
> Michael.
>
>>
>> Regards,
>> Juha
>>
>> ---
>> Heap dump by heaptrc unit
>> 4466835 memory blocks allocated : 800495659/813452344
>> 4464534 memory blocks freed     : 800391839/813341848
>> 2301 unfreed memory blocks : 103820
>> True heap size : 4259840
>> True free heap : 3778816
>> Should be : 3854816
>> Call trace for block $00007F710BF15940 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645C680 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645C800 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645C8C0 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645B300 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645CD40 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645A7C0 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>>  $0000000000431B9F
>>  $00000000005D8DD7 line 5425 of include/wincontrol.inc
>>  $0000000000667557 line 528 of include/customedit.inc
>>  $000000000082BCE0 line 112 of lclmessageglue.pas
>> Call trace for block $00007F712645CF80 size 20
>>  $00000000013CB5CC line 179 of frmspotter.pas
>>  $0000000000667CE0 line 652 of include/customedit.inc
>>  $0000000000667C5A line 644 of include/customedit.inc
>>  $00000000005E7E74 line 1203 of include/control.inc
>> --
>> _______________________________________________
>> Lazarus mailing list
>> [hidden email]
>> https://lists.lazarus-ide.org/listinfo/lazarus
> --
> _______________________________________________
> Lazarus mailing list
> [hidden email]
> https://lists.lazarus-ide.org/listinfo/lazarus
>
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Sun, Sep 23, 2018 at 1:16 PM, Michael Van Canneyt via Lazarus
<[hidden email]> wrote:

>
> Hello,
>
> I've polished something that was started during the Lazarus Pro conference
> in Bonn the last days, the IDE Spotter (this is a "Working Title").
>
> The idea is to have a command box such as it exists in Atom or Visual code
> studio.
>
> Press ALt-Shift-P (or Meta-Shift-P on Mac) to access it.
>
> Type the command you wish (e.g. open), navigate with arrows or click on the
> correct match. The command will be executed. You can type multiple words.
> all parts must be matched (and are colorized).
>
> You can find the package under 'components/idespotter' in SVN.
> It should also work under 1.8.4/2.0rc1 for those that want to try it.
>
> There are some options under Tools - Options - Environment - IDE Spotter.
>
> Ideas for improvements are currently:
> - Shrink window list if the match list is "small".
> - Search in recent files (projects/units/packages)
> - ... ?
>
> Please testdrive it. Ideas for improvements/comments/bugreports welcome
> (well, the latter not so much ;)).
>
> Thanks go to James Ralston for pitching the idea, and Mattias for including
> it in SVN !
>
> Michael.

This is a great idea. My window manager, i3, works very well with a
feature like this. Sadly a lot of actions are application specific and
require that specific application to support "hinting" (to work with a
general solution) or to implement their own solution.

You may want to look at https://pwmt.org/projects/girara/, which
provides a vim-like input for an application. It finds use in Zathura
(PDF reader) and Jumanji (browser, not usable iirc).

Cheers,
    R0b0t1
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Mon, Sep 24, 2018 at 11:51 AM Michael Van Canneyt via Lazarus
<[hidden email]> wrote:
> I applied a possible fix; Please test and report.

The Subversion server and bug tracker are down. I will try later again.

Juha
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list


On Mon, 24 Sep 2018, Juha Manninen via Lazarus wrote:

> On Mon, Sep 24, 2018 at 11:51 AM Michael Van Canneyt via Lazarus
> <[hidden email]> wrote:
>> I applied a possible fix; Please test and report.
>
> The Subversion server and bug tracker are down. I will try later again.

They work here ?

Michael.
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

[Lazarus] IDE Spotter

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
1- If i hold Up/Down key (edit is focused), i dont get many up/down
moves in listbox.
(only one move. Ubuntu 18 gtk2).

2- colors (red, green) are configurable?

Alex
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
12