Discussion:
complete and completeWord macros
Paulo Gil
2014-05-14 16:16:03 UTC
Permalink
Hi all,

I was a fan of the complete and completeWord macros but found out that
they don't work in WinEdt 8.

The Complete Word in Tools (Ctrl+Enter) is really not the same as it
generates too many options.

Any idea if there is plans to update these macros?

Thanks
Paulo
WinEdt Team
2014-05-16 13:07:09 UTC
Permalink
Post by Paulo Gil
I was a fan of the complete and completeWord macros but found out
that they don't work in WinEdt 8.
The Complete Word in Tools (Ctrl+Enter) is really not the same as
it generates too many options.
Any idea if there is plans to update these macros?
Correct me if I am wrong but as far as I can see the macros are
perfectly compatible with WinEdt 8 and need no updating.

Just like before you probably want to create a menu interface and
assign a shortcut to them.

What exactly is a problem with these macros in WinEdt 8 as opposed
to older versions (which one) of WinEdt?

Best regards,

alex
Paulo Gil
2014-05-16 14:06:12 UTC
Permalink
Post by WinEdt Team
Post by Paulo Gil
I was a fan of the complete and completeWord macros but found out
that they don't work in WinEdt 8.
The Complete Word in Tools (Ctrl+Enter) is really not the same as
it generates too many options.
Any idea if there is plans to update these macros?
Correct me if I am wrong but as far as I can see the macros are
perfectly compatible with WinEdt 8 and need no updating.
Just like before you probably want to create a menu interface and
assign a shortcut to them.
What exactly is a problem with these macros in WinEdt 8 as opposed
to older versions (which one) of WinEdt?
Hi,
Thanks for replying.

In the page of the macros is stated that they are for versions 6,
5.3-5.6. There is no installation procedure that can be applied to
WinEdt 8 but I tried to put the code:

MENU="userdefined"
ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."
END="userdefined"

in Menus and Toolbar.../Popup Menus in the Options Interface (seemed
like the best place, by analogy with the instructions to previous
versions) but it doesn't work and does not provide any hint why (the
shortcut is just ignored) [Hum, I realize I should have told this before...]

I do not master WiEdt's macro language but the code is small, I'm pretty
sure that there are no obvious mistakes in the path and things like
that. I even remembered to save the PopupMenus.ini file and reload the
options :)

I'm clueless here. Any suggestions?

Best regards,
Paulo
Post by WinEdt Team
Best regards,
alex
WinEdt Team
2014-05-16 23:12:34 UTC
Permalink
Paulo,
Post by Paulo Gil
in Menus and Toolbar.../Popup Menus in the Options Interface
(seemed like the best place, by analogy with the instructions to
previous versions) but it doesn't work and does not provide any
hint why (the shortcut is just ignored) [Hum, I realize I should
have told this before...]
I do not master WiEdt's macro language but the code is small, I'm
pretty sure that there are no obvious mistakes in the path and
things like that. I even remembered to save the PopupMenus.ini file
and reload the options :)
I'm clueless here. Any suggestions?
You are on the right track (not quite clueless) and indeed a
simple item like this is all it takes.

However popup menus are not suitable for single shortcuts. You
should insert an item:

ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."

in Main Menu eg. at the beginning of the invisible Shortcuts Menu
before

ITEM="$Fold_All"

and reload. Only then will Ctrl+. activate this macro.

Popup menus can be used for double (or multiple) shortcuts but you
probably don't want that...

In older versions of WinEdt the same would apply (at least in
principle)...

Best regards,

alex
Paulo Gil
2014-05-17 01:20:13 UTC
Permalink
It worked. Many thanks!
Best regards,
Paulo
Post by WinEdt Team
Paulo,
Post by Paulo Gil
in Menus and Toolbar.../Popup Menus in the Options Interface
(seemed like the best place, by analogy with the instructions to
previous versions) but it doesn't work and does not provide any
hint why (the shortcut is just ignored) [Hum, I realize I should
have told this before...]
I do not master WiEdt's macro language but the code is small, I'm
pretty sure that there are no obvious mistakes in the path and
things like that. I even remembered to save the PopupMenus.ini file
and reload the options :)
I'm clueless here. Any suggestions?
You are on the right track (not quite clueless) and indeed a
simple item like this is all it takes.
However popup menus are not suitable for single shortcuts. You
ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."
in Main Menu eg. at the beginning of the invisible Shortcuts Menu
before
ITEM="$Fold_All"
and reload. Only then will Ctrl+. activate this macro.
Popup menus can be used for double (or multiple) shortcuts but you
probably don't want that...
In older versions of WinEdt the same would apply (at least in
principle)...
Best regards,
alex
Paulo Gil
2014-05-17 10:00:46 UTC
Permalink
Hi again,

Maybe I rejoiced too soon. For the completeWord macro I put basically
the same code in the same place as for the complete macro but it didn't
work. The completWord macro is similar to the complete macro but with
the difference that it opens a menu to select the word from a list (just
like the Ctrl+Enter macro, I suppose). Can this be the problem?

Best regards,
Paulo
Post by Paulo Gil
It worked. Many thanks!
Best regards,
Paulo
Post by WinEdt Team
Paulo,
Post by Paulo Gil
in Menus and Toolbar.../Popup Menus in the Options Interface
(seemed like the best place, by analogy with the instructions to
previous versions) but it doesn't work and does not provide any
hint why (the shortcut is just ignored) [Hum, I realize I should
have told this before...]
I do not master WiEdt's macro language but the code is small, I'm
pretty sure that there are no obvious mistakes in the path and
things like that. I even remembered to save the PopupMenus.ini file
and reload the options :)
I'm clueless here. Any suggestions?
You are on the right track (not quite clueless) and indeed a
simple item like this is all it takes.
However popup menus are not suitable for single shortcuts. You
ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."
in Main Menu eg. at the beginning of the invisible Shortcuts Menu
before
ITEM="$Fold_All"
and reload. Only then will Ctrl+. activate this macro.
Popup menus can be used for double (or multiple) shortcuts but you
probably don't want that...
In older versions of WinEdt the same would apply (at least in
principle)...
Best regards,
alex
Paulo Gil
2014-05-17 10:22:56 UTC
Permalink
Sorry about the email barrage,

I thought it was only the problem reported but it is more strange than that.
What is happening is that the complete macro works exactly once and then
stops working.
I then tried to delete this one and put the completeWord in the place
and now it is working (several times, not just once)...
I used the same macro, so that's not the problem, nor the fact that
there's a menu in this macro.

I will try to do some more tests and will return with more info about
what's happening.

Sorry about the early posting without proper testing.
Best regards,
Paulo
Post by Paulo Gil
Hi again,
Maybe I rejoiced too soon. For the completeWord macro I put basically
the same code in the same place as for the complete macro but it
didn't work. The completWord macro is similar to the complete macro
but with the difference that it opens a menu to select the word from a
list (just like the Ctrl+Enter macro, I suppose). Can this be the
problem?
Best regards,
Paulo
Post by Paulo Gil
It worked. Many thanks!
Best regards,
Paulo
Post by WinEdt Team
Paulo,
Post by Paulo Gil
in Menus and Toolbar.../Popup Menus in the Options Interface
(seemed like the best place, by analogy with the instructions to
previous versions) but it doesn't work and does not provide any
hint why (the shortcut is just ignored) [Hum, I realize I should
have told this before...]
I do not master WiEdt's macro language but the code is small, I'm
pretty sure that there are no obvious mistakes in the path and
things like that. I even remembered to save the PopupMenus.ini file
and reload the options :)
I'm clueless here. Any suggestions?
You are on the right track (not quite clueless) and indeed a
simple item like this is all it takes.
However popup menus are not suitable for single shortcuts. You
ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."
in Main Menu eg. at the beginning of the invisible Shortcuts Menu
before
ITEM="$Fold_All"
and reload. Only then will Ctrl+. activate this macro.
Popup menus can be used for double (or multiple) shortcuts but you
probably don't want that...
In older versions of WinEdt the same would apply (at least in
principle)...
Best regards,
alex
Rob Crompton
2014-05-17 12:33:47 UTC
Permalink
Z*-:-) *-:-) XC. )-| *-:-) ,,,,,

Sent from my Sony Xperia™ smartphone

---- Paulo Gil wrote ----
Post by Paulo Gil
Sorry about the email barrage,
I thought it was only the problem reported but it is more strange than that.
What is happening is that the complete macro works exactly once and then
stops working.
I then tried to delete this one and put the completeWord in the place
and now it is working (several times, not just once)...
I used the same macro, so that's not the problem, nor the fact that
there's a menu in this macro.
I will try to do some more tests and will return with more info about
what's happening.
Sorry about the early posting without proper testing.
Best regards,
Paulo
Post by Paulo Gil
Hi again,
Maybe I rejoiced too soon. For the completeWord macro I put basically
the same code in the same place as for the complete macro but it
didn't work. The completWord macro is similar to the complete macro
but with the difference that it opens a menu to select the word from a
list (just like the Ctrl+Enter macro, I suppose). Can this be the
problem?
Best regards,
Paulo
Post by Paulo Gil
It worked. Many thanks!
Best regards,
Paulo
Post by WinEdt Team
Paulo,
Post by Paulo Gil
in Menus and Toolbar.../Popup Menus in the Options Interface
(seemed like the best place, by analogy with the instructions to
previous versions) but it doesn't work and does not provide any
hint why (the shortcut is just ignored) [Hum, I realize I should
have told this before...]
I do not master WiEdt's macro language but the code is small, I'm
pretty sure that there are no obvious mistakes in the path and
things like that. I even remembered to save the PopupMenus.ini file
and reload the options :)
I'm clueless here. Any suggestions?
You are on the right track (not quite clueless) and indeed a
simple item like this is all it takes.
However popup menus are not suitable for single shortcuts. You
ITEM="Complete"
CAPTION="&complete"
MACRO="Exe('%b\Macros\text\complete.edt');"
SHORTCUT="Ctrl+."
in Main Menu eg. at the beginning of the invisible Shortcuts Menu
before
ITEM="$Fold_All"
and reload. Only then will Ctrl+. activate this macro.
Popup menus can be used for double (or multiple) shortcuts but you
probably don't want that...
In older versions of WinEdt the same would apply (at least in
principle)...
Best regards,
alex
Loading...