Re: [Qt-creator] Crazy improvement idea #2

2018-03-15 Thread Helmut Mülner
Hi,


> I would like to stick with the concept of visual studio here. They are 
> basically adding a new editor between the  current cursor line and the line 
> after. This would result in scrolling the content after your cursor down the 
> size of the new editor.




Visual Studio hast wo feature that are similar to this idea:

 

1. It has a Code Definition Window (in QtCreator this could be in the pane 
with Issues …)

If this window is visible and the cursor in the editor windows is on any item 
that has a definition, that definition is shown in the Code Definition Window.

2. The Text Editor has an option (in Options/Text Editor/General) to 
“Enable mouse click to perform Go to Definition with a selectable modifier key 
(Ctrl, Alt or Ctrl+Alt)  and a sub-option to “Open definition in peek view”. 
This is the new editor you described. The peek view can be close or promoted to 
a full editor window. If the definition is in the same file the editor is 
position to the definition (and the defining token highlighted).

 

Greetings

Helmut

 

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-15 Thread David Schulz

Hi,


On 14-Mar-18 12:47, Davide Coppola wrote:
Isn't something like this slower than just pressing F2 when the cursor 
is on a function?


I also was thinking about to trigger this, let's name it inline editor, 
via some shortcut and not as a result of a tooltip event. But I guess a 
delayed popup for the mouse user wouldn't hurt either.


Greetings
David


I am assuming that the overlay would appear after some delay, because 
otherwise moving the mouse around could make the navigation pretty 
confusing.


On 14 March 2018 at 07:21, David Schulz > wrote:


Hi,

I started working on a similar feature, but never exceeded the
state of an early concept. The results of this concept weren't
promising enough for me to keep on working further on this.

If you are interested in participating in the development of the
feature I'ld suggest you to open a report for this on
bugreports.qt.io  and I add you to the
patch on gerrit as a reviewer, so we can discuss details of the
implementation and functionality there.

Greetings

David




On 14-Mar-18 00:14, Jason H wrote:

After my auto commenting of } comes my next crazy editor
idea... Function popups.

After hovering or clicking on a function being called in code,
a pop-up of the finction's source I appears and can be easily
scrolled or closed.

As an enhancement, maybe only show the first few lines and the
last few lines as those are likely of they most interest.
___
Qt-creator mailing list
Qt-creator@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/qt-creator





--
*Davide Coppola*

*website:*http://www.davidecoppola.com
*blog:*http://blog.davidecoppola.com

 
 




___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread Nikos Chantziaras

On 14/03/18 01:14, Jason H wrote:

After my auto commenting of } comes my next crazy editor idea... Function 
popups.

After hovering or clicking on a function being called in code, a pop-up of the 
finction's source I appears and can be easily scrolled or closed.

As an enhancement, maybe only show the first few lines and the last few lines 
as those are likely of they most interest.


I prefer the function signature and, most importantly, the documentation 
of the function to be shown in the popup, not the code.


I can do ctrl+click on the function name and then "back button" on the 
mouse to take a look at the code.


In your suggestion, I would make code optional by having a "..." field 
in the pop-up. If I hover (or click?) that, *then* the code would be 
displayed. But not by default. Code in pop-ups is just too much and gets 
in the way of the actually useful information.


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread Andy
Also thinking out loud since I haven't used such a feature before...

Would it be possible/reasonable/still useful to put the code somewhere
other than a popup that obscures the text in the editor? Maybe in a panel
on the right (like the docs) or a "console" below?

I already find that some things that pop up beside the cursor get in the
way because they are too long or I'm not even trying to activate it, but
the contents can be useful sometimes.

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>


On Wed, Mar 14, 2018 at 1:04 PM, Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> I think this is a good idea. Another feature along the same lines is when
> you hover over a macro I want to see the fully resolved code even for
> deeply nested macros. I miss this from Eclipse.
>
>
>
> Just my 2 Cents.
>
> Mike Jackson
>
>
>
> *From: *Qt-creator <qt-creator-bounces+mike.jackson=bluequartz.net@qt-
> project.org> on behalf of Jason H <jh...@gmx.com>
> *Date: *Wednesday, March 14, 2018 at 6:40 AM
> *To: *Davide Coppola <vivala...@gmail.com>
> *Cc: *<qt-creator@qt-project.org>
> *Subject: *Re: [Qt-creator] Crazy improvement idea #2
>
>
>
> I think it would be faster, without the abrubt diconnect of switching
> files.
>
>
>
> Anyway, I'm throwing these ideas out there to see what sticks. If people
> like them, then I file a report. If people detest them then I don't bother.
>
>
>
> As a refinement to the idea, if there was a documentation string, that
> would be shown. As a refinement to the refinement, maybe the pipus is an
> doc strng editor so that you can type one if it doesn't already exist?
>
>
>
> I'm just trying to make development easier and take it to the next level.
>
>
>
> *Sent:* Wednesday, March 14, 2018 at 7:47 AM
> *From:* "Davide Coppola" <vivala...@gmail.com>
> *To:* qt-creator@qt-project.org
> *Subject:* Re: [Qt-creator] Crazy improvement idea #2
>
> Isn't something like this slower than just pressing F2 when the cursor is
> on a function?
>
>
>
> I am assuming that the overlay would appear after some delay, because
> otherwise moving the mouse around could make the navigation pretty
> confusing.
>
>
>
> On 14 March 2018 at 07:21, David Schulz <david.sch...@qt.io> wrote:
>
> Hi,
>
> I started working on a similar feature, but never exceeded the state of an
> early concept. The results of this concept weren't promising enough for me
> to keep on working further on this.
>
> If you are interested in participating in the development  of the feature
> I'ld suggest you to open a report for this on bugreports.qt.io and I add
> you to the patch on gerrit as a reviewer, so we can discuss details of the
> implementation and functionality there.
>
> Greetings
>
> David
>
>
>
>
>
> On 14-Mar-18 00:14, Jason H wrote:
>
> After my auto commenting of } comes my next crazy editor idea... Function
> popups.
>
> After hovering or clicking on a function being called in code, a pop-up of
> the finction's source I appears and can be easily scrolled or closed.
>
> As an enhancement, maybe only show the first few lines and the last few
> lines as those are likely of they most interest.
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
>
>
>
> --
>
> *Davide Coppola*
>
>
>
> *website:* http://www.davidecoppola.com
>
> *blog:* http://blog.davidecoppola.com
>
>
>
> [image: Image removed by sender.] <http://plus.google.com/+DavideCoppola> 
> [image:
> Image removed by sender.] <http://www.linkedin.com/in/davidecoppola> [image:
> Image removed by sender.] <http://www.twitter.com/vivaladav>
>
> ___ Qt-creator mailing list
> Qt-creator@qt-project.org http://lists.qt-project.org/
> mailman/listinfo/qt-creator
>
> ___ Qt-creator mailing list
> Qt-creator@qt-project.org http://lists.qt-project.org/
> mailman/listinfo/qt-creator
>
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread Michael Jackson
I think this is a good idea. Another feature along the same lines is when you 
hover over a macro I want to see the fully resolved code even for deeply nested 
macros. I miss this from Eclipse.

 

Just my 2 Cents. 

Mike Jackson

 

From: Qt-creator 
<qt-creator-bounces+mike.jackson=bluequartz@qt-project.org> on behalf of 
Jason H <jh...@gmx.com>
Date: Wednesday, March 14, 2018 at 6:40 AM
To: Davide Coppola <vivala...@gmail.com>
Cc: <qt-creator@qt-project.org>
Subject: Re: [Qt-creator] Crazy improvement idea #2

 

I think it would be faster, without the abrubt diconnect of switching files. 

 

Anyway, I'm throwing these ideas out there to see what sticks. If people like 
them, then I file a report. If people detest them then I don't bother. 

 

As a refinement to the idea, if there was a documentation string, that would be 
shown. As a refinement to the refinement, maybe the pipus is an doc strng 
editor so that you can type one if it doesn't already exist?

 

I'm just trying to make development easier and take it to the next level.

  

Sent: Wednesday, March 14, 2018 at 7:47 AM
From: "Davide Coppola" <vivala...@gmail.com>
To: qt-creator@qt-project.org
Subject: Re: [Qt-creator] Crazy improvement idea #2

Isn't something like this slower than just pressing F2 when the cursor is on a 
function? 

 

I am assuming that the overlay would appear after some delay, because otherwise 
moving the mouse around could make the navigation pretty confusing.

  

On 14 March 2018 at 07:21, David Schulz <david.sch...@qt.io> wrote: 

Hi,

I started working on a similar feature, but never exceeded the state of an 
early concept. The results of this concept weren't promising enough for me to 
keep on working further on this.

If you are interested in participating in the development  of the feature I'ld 
suggest you to open a report for this on bugreports.qt.io and I add you to the 
patch on gerrit as a reviewer, so we can discuss details of the implementation 
and functionality there.

Greetings

David 





On 14-Mar-18 00:14, Jason H wrote: 

After my auto commenting of } comes my next crazy editor idea... Function 
popups.

After hovering or clicking on a function being called in code, a pop-up of the 
finction's source I appears and can be easily scrolled or closed.

As an enhancement, maybe only show the first few lines and the last few lines 
as those are likely of they most interest.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator

  

 

-- 

Davide Coppola 

  

website: http://www.davidecoppola.com

blog: http://blog.davidecoppola.com

 

  

___ Qt-creator mailing list 
Qt-creator@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/qt-creator

___ Qt-creator mailing list 
Qt-creator@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/qt-creator 

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread Jason H

I think it would be faster, without the abrubt diconnect of switching files. 

 

Anyway, I'm throwing these ideas out there to see what sticks. If people like them, then I file a report. If people detest them then I don't bother. 

 

As a refinement to the idea, if there was a documentation string, that would be shown. As a refinement to the refinement, maybe the pipus is an doc strng editor so that you can type one if it doesn't already exist?

 

I'm just trying to make development easier and take it to the next level.

 

Sent: Wednesday, March 14, 2018 at 7:47 AM
From: "Davide Coppola" <vivala...@gmail.com>
To: qt-creator@qt-project.org
Subject: Re: [Qt-creator] Crazy improvement idea #2


Isn't something like this slower than just pressing F2 when the cursor is on a function?
 

I am assuming that the overlay would appear after some delay, because otherwise moving the mouse around could make the navigation pretty confusing.


 
On 14 March 2018 at 07:21, David Schulz <david.sch...@qt.io> wrote:

Hi,

I started working on a similar feature, but never exceeded the state of an early concept. The results of this concept weren't promising enough for me to keep on working further on this.

If you are interested in participating in the development  of the feature I'ld suggest you to open a report for this on bugreports.qt.io and I add you to the patch on gerrit as a reviewer, so we can discuss details of the implementation and functionality there.

Greetings

David






On 14-Mar-18 00:14, Jason H wrote:
After my auto commenting of } comes my next crazy editor idea... Function popups.

After hovering or clicking on a function being called in code, a pop-up of the finction's source I appears and can be easily scrolled or closed.

As an enhancement, maybe only show the first few lines and the last few lines as those are likely of they most interest.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator



 

 
--







Davide Coppola

 
website: http://www.davidecoppola.com


blog: http://blog.davidecoppola.com

 

  








___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread Davide Coppola
Isn't something like this slower than just pressing F2 when the cursor is
on a function?

I am assuming that the overlay would appear after some delay, because
otherwise moving the mouse around could make the navigation pretty
confusing.

On 14 March 2018 at 07:21, David Schulz  wrote:

> Hi,
>
> I started working on a similar feature, but never exceeded the state of an
> early concept. The results of this concept weren't promising enough for me
> to keep on working further on this.
>
> If you are interested in participating in the development  of the feature
> I'ld suggest you to open a report for this on bugreports.qt.io and I add
> you to the patch on gerrit as a reviewer, so we can discuss details of the
> implementation and functionality there.
>
> Greetings
>
> David
>
>
>
>
> On 14-Mar-18 00:14, Jason H wrote:
>
>> After my auto commenting of } comes my next crazy editor idea... Function
>> popups.
>>
>> After hovering or clicking on a function being called in code, a pop-up
>> of the finction's source I appears and can be easily scrolled or closed.
>>
>> As an enhancement, maybe only show the first few lines and the last few
>> lines as those are likely of they most interest.
>> ___
>> Qt-creator mailing list
>> Qt-creator@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>



-- 
*Davide Coppola*

*website:* http://www.davidecoppola.com
*blog:* http://blog.davidecoppola.com




___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-14 Thread David Schulz

Hi,

I started working on a similar feature, but never exceeded the state of 
an early concept. The results of this concept weren't promising enough 
for me to keep on working further on this.


If you are interested in participating in the development  of the 
feature I'ld suggest you to open a report for this on bugreports.qt.io 
and I add you to the patch on gerrit as a reviewer, so we can discuss 
details of the implementation and functionality there.


Greetings

David



On 14-Mar-18 00:14, Jason H wrote:

After my auto commenting of } comes my next crazy editor idea... Function 
popups.

After hovering or clicking on a function being called in code, a pop-up of the 
finction's source I appears and can be easily scrolled or closed.

As an enhancement, maybe only show the first few lines and the last few lines 
as those are likely of they most interest.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Crazy improvement idea #2

2018-03-13 Thread Hualet Wang
Sounds like "Peek" in VSCode to me, really helpful :)

2018-03-14 7:14 GMT+08:00 Jason H :

> After my auto commenting of } comes my next crazy editor idea... Function
> popups.
>
> After hovering or clicking on a function being called in code, a pop-up of
> the finction's source I appears and can be easily scrolled or closed.
>
> As an enhancement, maybe only show the first few lines and the last few
> lines as those are likely of they most interest.
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>



-- 
-- Hualet
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator