This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 44801 - Ad-hoc macros.
Summary: Ad-hoc macros.
Status: RESOLVED DUPLICATE of bug 69424
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
: 20018 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-14 09:19 UTC by tristen
Modified: 2007-11-05 13:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tristen 2004-06-14 09:19:56 UTC
The default macro behaviour once recording has
finished is a bit inconvenient and could be
simplified to great advantage.

As a developer, I find macros an extremely helpful
tool in assisting the development process. The
NetBeans IDE currently provides handy shortcut
keys to start and end the recording process
(ctrl-j s, ctrl-j e).

Which is great, but on the basis that 99% of
macros are usually "throw-away" macros (ie: they
very rarely need saving for future use), having to
subsequently:

1. click the "Add" button to bind a key,
2. type the keystroke,
3. click "OK" to accept the keystroke,
4. click "OK" to save the macro,
5. click "OK" one more time if you want to
over-write the default <> macro

before you can start actually using the desired
macro makes the macro process too cumbersome for
"on-the-fly" macros which us developers love so
much...

Perhaps it would be best to have Netbeans simply
bind any newly recorded macro to a default key
(customisable). That way the macro could be used
immediately upon completing the ctrl-j e.

If the developer then wants to actually save the
current macro as a permanent macro for future use,
then a new option to "Save Current Macro" could be
added. This option would invoke the current
functionality for saving macros, thus preserving
the existing functionality.
Comment 1 mlconnor 2005-08-11 22:06:08 UTC
I couldn't agree more.  For the past few years I always keep another editor open
explicitly for the purpose of doing ad hoc macros.  I would say that the vast
majority (95%) of my macros are throw away and I don't want to have to bind them
to a key or name them.

Vi and Emacs have this as do most other code editors.

This would be a great addition.

NetBeans Rocks boys.  Keep up the good work.

Michael
Comment 2 marciowb 2005-10-14 00:29:54 UTC
*** Issue 20018 has been marked as a duplicate of this issue. ***
Comment 3 Vitezslav Stejskal 2007-01-15 22:16:05 UTC
*** Issue 41740 has been marked as a duplicate of this issue. ***
Comment 4 Vitezslav Stejskal 2007-01-15 22:18:15 UTC

*** This issue has been marked as a duplicate of 69424 ***