CnPack Forum


 
Subject: [Feature request] Add "Copy filename only" to editor/tab context menu
Fr0sT
新警察
Rank: 1



UID 67293
Digest Posts 0
Credits 12
Posts 4
点点分 12
Reading Access 10
Registered 2011-11-10
Status Offline
Post at 2011-11-10 21:03  Profile | Blog | P.M. 
[Feature request] Add "Copy filename only" to editor/tab context menu

First of all, thanks for such mighty tool!

A have a request: could you add "Copy filename only" item to editor/tab context menu. In fact it's needed almost as often as "copy full path/filename" and even more often!
For me I've already implemented this excepting the options but I guess this feature would be useful for all.

Another request is to differentiate editor menu and tab menu. While tab menu is quite small and allows widening with additional items easily, the editor menu is huge and any additional item just makes it monstrous.
Top
cnpackfan
灌水科科长
Rank: 3Rank: 3



UID 22133
Digest Posts 0
Credits 124
Posts 43
点点分 124
Reading Access 10
Registered 2007-8-4
Status Offline
Post at 2012-2-20 00:56  Profile | Blog | P.M. 
Hello Fr0St,

yep, same wish!

Important: with defined Hotkey or Shortcut, therefore I prefer editor (context) menu.


Many thanks and greetings
cnpackfan

[ Last edited by  cnpackfan at 2012-2-20 01:00 ]
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6672
Posts 3515
点点分 6672
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2012-2-20 11:42  Profile | Blog | P.M. 
We can write a script to do it.

The key function is "CnOtaGetCurrentSourceFile".

Please refer to "Installation path"\PSDemo\LocateDir.pas
Top
cnpackfan
灌水科科长
Rank: 3Rank: 3



UID 22133
Digest Posts 0
Credits 124
Posts 43
点点分 124
Reading Access 10
Registered 2007-8-4
Status Offline
Post at 2012-2-22 18:30  Profile | Blog | P.M. 
Reply #3 Passion's post

Hello Passion,

great, really - many thanks.

Is it possible to add scripts for [REQ] Copy to clipboard: Component-class, property name and value, see http://bbs.cnpack.org/viewthread.php?tid=11921&extra=page%3D1, too?


Many thanks and greetings
cnpackfan
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6672
Posts 3515
点点分 6672
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2012-2-23 07:28  Profile | Blog | P.M. 
Seems no good functions to directly get the content from object inspector. Maybe need some find-by-name way. I'll check it.
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6672
Posts 3515
点点分 6672
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2012-3-1 22:00  Profile | Blog | P.M. 
I add an "ObjectInspector.pas" in PSDemo directory to our SVN. It can simply print current selected property value.

But class name and property name seems hard to get.
For more structure about object inspector, please run script: CnDebugger.EvaluateObject(GetObjectInspectorForm);
Top
Fr0sT
新警察
Rank: 1



UID 67293
Digest Posts 0
Credits 12
Posts 4
点点分 12
Reading Access 10
Registered 2011-11-10
Status Offline
Post at 2012-3-19 14:59  Profile | Blog | P.M. 
Well, scripts are nice but that will be used or even known by 2-3 users only. Special menu item located in the tab menu is much more obvious and convenient.
Top
cnpackfan
灌水科科长
Rank: 3Rank: 3



UID 22133
Digest Posts 0
Credits 124
Posts 43
点点分 124
Reading Access 10
Registered 2007-8-4
Status Offline
Post at 2012-3-19 17:35  Profile | Blog | P.M. 
Reply #7 Fr0sT's post

Hello Fr0sT,

yep, I would prefer a menu item, too.


Many thanks and greetings
cnpackfan
Top
 




All times are GMT++8, the time now is 2022-7-1 10:23

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

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