Is there already some plugin to integrate cmd into PN window? If not, is there any plans for that or is it difficult to implement?
Windows cmd integrated
(6 posts) (4 voices)-
Posted 1 year ago #
-
In Tools menu, there's "Command Mode" item. But I've never managed to make it work. I don't know if there's a trick to use it (no mention of it in online doc) or if it's reserved for some future feature.
Posted 1 year ago # -
@miika There are plans for an integrated console (i.e. one that accepts input as well as captures output, you can already capture console output) but I'm not sure when.
@horus You need PyPN installed for the command bar, and enable it in Options. It's still an experimental feature, and offers VI-style document editing commands that can be extended with Python.
Posted 1 year ago # -
OK, sorry, miss that :p
Posted 1 year ago # -
I finally managed to get the command mode working after reading here that I need to enable it. I was keen to have vi commands available, however after some testing it seems that only a small subset of vi commands are there.
Some things that are missing in a small amount of testing:
x (delete character)
d5j (delete next 5 lines)
J (join lines)
dw (across non word characters, e.g. Foo/Bar)
. (repeat last)I'm sure there are lots more. I appreciate that this is an experimental feature and so not fully implemented yet. May I suggest though that before you enable it fully, please try to support most of the vi command set.
Regards,
BrodiePosted 1 year ago # -
Yes, there are a whole bunch more that need to be supported.
One of the nice things about the way this is implemented (IMHO) is that the handling of the commands is all implemented in a python script. Therefore you can open up pypn\commands.py and add handling for any extra commands you want - even send me a patch :)
Posted 1 year ago #
Reply
You must log in to post.