shramos / polymorph

Polymorph is a real-time network packet manipulation framework with support for almost all existing protocols
GNU General Public License v2.0
445 stars 61 forks source link

Functions with autocomplete #19

Closed dragonxtek closed 3 years ago

dragonxtek commented 3 years ago

Can you enable autocomplete for functions files? Actually I can autocomplete with polymorph commands, but no with the arguments suported by functions -i In the example, it would be ideal to autocomplete with the results of functions -sa, that is, in this case, with sniff_icmp

Selection_999(923)

shramos commented 3 years ago

Hi @dragonxtek,

In the case you are showing, you can autocomplete by pressing Ctrl+e or simply the right arrow.

dragonxtek commented 3 years ago

Sure, but I can do it because I entered the command before and I'm using zshell (remember the lastest commands). But, if I use bash or I never used this function (like udtforever), I can't autocomplete the sentence to add it quickly

Selection_999(926)

shramos commented 3 years ago

Polymorph remembers all the commands previously entered by the user, regardless of the shell used. It stores the histories in a series of files located in the project directory. This means that if you have previously created the function, you will always have the option to auto-complete it on subsequent occasions.

Regarding autocomplete function names that have not been previously added, I write down the requirement for the next update, thanks!