CnPack Forum


 
Subject: 2 shortcuts problems + 1 request
Vilo
新警察
Rank: 1



UID 59847
Digest Posts 0
Credits 12
Posts 5
点点分 12
Reading Access 10
Registered 2011-3-4
Status Offline
Post at 2011-3-4 16:57  Profile | Blog | P.M. 
2 shortcuts problems + 1 request

Hi all,

I'm facing 2 problems, both are with shortcuts.
I'm using Code Input Helper and Block Highlight, both being manually triggered by shortcuts : CTRL+* for CIH and CTRL+W for Code Highlight.

First issue :
When I assign a shortcut for the first time, all works fine in the current Delphi session, but as soon as I restart Delphi, the shortcut doesn't triggers anything.
CIH shortcut is correctly remembered, but it is not active after restart.
I have to manually redefine a different shortcut to make it work again ... for the current session.

Second issue :
The Block Highlight shortcut is not saved/restored from registry.
IMHO the problem comes from the file CnSourceHighlight.pas line 1601, the name of the shortcut is not set (first parameter is empty), and thus it is not saved nor restored.

Request :
I wish I could totally replace Delphi's Code Input Helper with the CnPack's one.
To do that it should be possible to assign CTRL+SPACE as the Code Input Helper shortcut, but it is not possible.
Could you make it append for a future release ?
(By the way I've temporally bypassed this limitation by using a AutoHotKey script to reassign CTRL+SPACE to the CIH CTRL+* shortcut ;-)


Thanks for your attention.
By.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6567
Posts 3463
点点分 6567
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-3-12 11:22  Profile | Blog | P.M. 
Shortcut problem is a long term bug in our wizards and still no good way to fix it perfectly.

Block Highlight problem will be fixed, it's because of our carelessness.

We'll also enable Ctrl space in next nightly build version.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6567
Posts 3463
点点分 6567
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-3-12 15:14  Profile | Blog | P.M. 
Please try our latest nightly build 597.
http://www.cnpack.org/downbuilds.php
Top
Vilo
新警察
Rank: 1



UID 59847
Digest Posts 0
Credits 12
Posts 5
点点分 12
Reading Access 10
Registered 2011-3-4
Status Offline
Post at 2011-4-14 22:30  Profile | Blog | P.M. 
Hi,

I'm testing the latest nightly 0.9.7.599_Unstable Build 2011.04.08

Block Highlight seams to be totally broken.

Code Input Helper
shows :
- some improvements => shortcut is saved between sessions
- new issue => Ctrl+Space works fine just after assignation, but rapidly (couple of seconds) the original IDE Input Helper overwrites it and popups as before when hiting Ctrl+Space.

;-)
Top
Vilo
新警察
Rank: 1



UID 59847
Digest Posts 0
Credits 12
Posts 5
点点分 12
Reading Access 10
Registered 2011-3-4
Status Offline
Post at 2011-4-15 15:56  Profile | Blog | P.M. 
After a couple of tests / reboot / IDE restart, the "Code Input Helper's shortcut not remembered" bug reappeared (i.e. when hitting the CIH shortcut, nothing appends).
The shortcut was Ctrl+*.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6567
Posts 3463
点点分 6567
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-4-18 15:46  Profile | Blog | P.M. 
We do not auto mask the original IDE code insight, so if assign Ctrl+Space to Input Helper, maybe should disable Code Insight first to avoid conflicting.

Could you provide more information about "Block Highlight totally broken"?
Top
Vilo
新警察
Rank: 1



UID 59847
Digest Posts 0
Credits 12
Posts 5
点点分 12
Reading Access 10
Registered 2011-3-4
Status Offline
Post at 2011-4-18 16:10  Profile | Blog | P.M. 
Today I've retest the Block Highlight and it works as expected ...
I guess my Delphi / CnPack was all screwed up by my preceding tests.

For the CIH issue, I've made my tests with Delphi CIH disabled (code completion off in options menu), but this option is only for automatic popup.
That is, if I hit Ctrl+Space, the Delphi CIH will still popup.

I'm making more tests with the following config :
- Delphi CIH auto popup OFF (i.e it does not auto-popup after tapping "." or "a couple of char")
- To avoid conflict between CnPack and Delphi and keep using "Ctrl+Space", I've remapped "Ctrl+Space" to "Ctrl+*" with AutoHotKey
- CnPack CIH enabled, manual trigger, with "Ctrl+*" hotkey

Results :
- When I first launch Delphi, CnPack CIH works as expected (Ctrl+Space => Ctrl+* => CIH pops-up)
- As soon as I close the project and load another one, shortcut is broken and CIH doesn't pop up anymore.

Top
DarkByte
新警察
Rank: 1



UID 64193
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2011-5-2
Location RO
Status Offline
Post at 2011-5-2 17:50  Profile | Blog | P.M. 
I have an isue with a shortcut, too, so I thought I'd post here (instead of opening a new topic).

The "Source Highlight" shortcut key is, by default, Ctrl + Shift + H. I changed it and it worked OK until I restarted Delphi. However, upon restart, the shortcut key reverts to the default combination. Is there any way to work around this or, perhaps, a bug-fix ?

I'm using CnPack IDE Wizards 0.9.7.591 Build 2010.10.01 with Delphi 2009 (12.0.3420.21218) on Windows Seven.

Thanks in advance !

[ Last edited by  DarkByte at 2011-5-2 17:51 ]
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6567
Posts 3463
点点分 6567
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2011-5-4 21:03  Profile | Blog | P.M. 
To DarkByte:
Source Highlight shortcut problem is a bug in 0.9.7.591.
Please download our latest nightly version 0.9.7.599 to verify it?

http://www.cnpack.org/downbuilds.php?lang=en
Top
DarkByte
新警察
Rank: 1



UID 64193
Digest Posts 0
Credits 8
Posts 3
点点分 8
Reading Access 10
Registered 2011-5-2
Location RO
Status Offline
Post at 2011-5-6 18:42  Profile | Blog | P.M. 
Thanks, it appears to be fixed in 0.9.7.599
Top
Vilo
新警察
Rank: 1



UID 59847
Digest Posts 0
Credits 12
Posts 5
点点分 12
Reading Access 10
Registered 2011-3-4
Status Offline
Post at 2011-7-18 15:43  Profile | Blog | P.M. 
All issues solved in Ver: 0.9.8.603 Build 2011.06.06.
Thanks ;-)
Top
 




All times are GMT++8, the time now is 2020-2-28 19:57

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.026695 second(s), 7 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP