Discussion:
[Qt-creator] Crazy improvement idea #2
Jason H
2018-03-13 23:14:53 UTC
Permalink
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.
Hualet Wang
2018-03-14 04:48:52 UTC
Permalink
Sounds like "Peek" in VSCode to me, really helpful :)
Post by 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
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
-- Hualet
David Schulz
2018-03-14 06:21:08 UTC
Permalink
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
Post by 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
http://lists.qt-project.org/mailman/listinfo/qt-creator
Davide Coppola
2018-03-14 11:47:53 UTC
Permalink
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.
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
Post by 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
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
*Davide Coppola*

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

<http://plus.google.com/+DavideCoppola>
<http://www.linkedin.com/in/davidecoppola>
<http://www.twitter.com/vivaladav>
Jason H
2018-03-14 13:40:51 UTC
Permalink
_______________________________________________
Qt-creator mailing list
Qt-***@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
Michael Jackson
2018-03-14 17:04:10 UTC
Permalink
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=***@qt-project.org> on behalf of Jason H <***@gmx.com>
Date: Wednesday, March 14, 2018 at 6:40 AM
To: Davide Coppola <***@gmail.com>
Cc: <qt-***@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" <***@gmail.com>
To: qt-***@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 <***@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-***@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


_______________________________________________
Qt-creator mailing list
Qt-***@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-***@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator

_______________________________________________ Qt-creator mailing list Qt-***@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator
Andy
2018-03-14 17:40:02 UTC
Permalink
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 <
Post by 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
*Date: *Wednesday, March 14, 2018 at 6:40 AM
*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
*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.
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
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
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
*Davide Coppola*
*website:* http://www.davidecoppola.com
*blog:* http://blog.davidecoppola.com
Image removed by sender.] <http://www.twitter.com/vivaladav>
_______________________________________________ Qt-creator mailing list
mailman/listinfo/qt-creator
_______________________________________________ Qt-creator mailing list
mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
David Schulz
2018-03-15 09:19:22 UTC
Permalink
Hi,
Post by 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 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.

greetings
David
Post by Andy
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
On Wed, Mar 14, 2018 at 1:04 PM, 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
*Date: *Wednesday, March 14, 2018 at 6:40 AM
*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
*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
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<http://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
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
http://lists.qt-project.org/mailman/listinfo/qt-creator<http://lists.qt-project.org/mailman/listinfo/qt-creator>
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator<http://lists.qt-project.org/mailman/listinfo/qt-creator>
--
*Davide Coppola*
*website:*http://www.davidecoppola.com
*blog:*http://blog.davidecoppola.com
Image removed by sender.
<http://plus.google.com/+DavideCoppola>Image removed by sender.
<http://www.linkedin.com/in/davidecoppola>Image removed by sender.
<http://www.twitter.com/vivaladav>
_______________________________________________ Qt-creator mailing
http://lists.qt-project.org/mailman/listinfo/qt-creator<http://lists.qt-project.org/mailman/listinfo/qt-creator>
_______________________________________________ Qt-creator mailing
http://lists.qt-project.org/mailman/listinfo/qt-creator
<http://lists.qt-project.org/mailman/listinfo/qt-creator>
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
<http://lists.qt-project.org/mailman/listinfo/qt-creator>
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
David Schulz
2018-03-15 09:09:09 UTC
Permalink
Hi,
Post by Davide Coppola
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
Post by Davide Coppola
I am assuming that the overlay would appear after some delay, because
otherwise moving the mouse around could make the navigation pretty
confusing.
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 <http://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
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
http://lists.qt-project.org/mailman/listinfo/qt-creator
<http://lists.qt-project.org/mailman/listinfo/qt-creator>
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
<http://lists.qt-project.org/mailman/listinfo/qt-creator>
--
*Davide Coppola*
*website:*http://www.davidecoppola.com
*blog:*http://blog.davidecoppola.com
<http://plus.google.com/+DavideCoppola>
<http://www.linkedin.com/in/davidecoppola>
<http://www.twitter.com/vivaladav>
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Nikos Chantziaras
2018-03-14 19:58:21 UTC
Permalink
Post by 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.
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.
Helmut Mülner
2018-03-15 09:31:35 UTC
Permalink
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

Loading...