All right, so welcome back again. So in this particular session, we try to see how to add auto completion to our CLR. So let's see what I mean by auto completion. So there are some CLS or some basic Unix command that when you're typing inside UCLA, you start getting auto completion help right, which is very useful. So how do you add auto completion to your theory? So this is something basic, I come back to the same thing that I have here.
Ls go with my load and the CLR purchase right? If I run this one and I want to get help, we have a command called login and convert for grid Lucci and I click on that is the symbol to bring that for us right simple. identify that this is what I will tell you something very nice about Baba right by default, it will identify that this is what I need. So I can also try it again with something so I can just make it like looking Going to make. So let's try to convert if I go see Oh, then tap. So it's going to bring out perfectly for us.
So by default, when once you have your new interactive mode, which identify the commands and give us the auto completion, but what if you also want to add your own auto completion to do that, so let's try that one. So I just quit from this place a new trial. So let's add a new command in this court is command has process. Let's go to the command. The name of this one would be calling just process right to display something. So let's make it like this option if it transposes, now, the process is going to take a value.
So let's put that value inside this particular option and then just go on and specify the or to complete evaluator to complete. This this is inside this particular autocomplete function. This one was put there I want autocomplete to be the solution that is put in process can be processed images. There is an associate process videos. There. Let's add another one process.
Let's see, Title I could use, right? or do something like this. If I come back again, and I go with my normal action, which is a function, which is going to be my function, that is an argument of x, then my callback, and I can actually print out what I'm bringing us if I go with this dot log, and I'll pass in the particular value of x dot value, right? You're free to this particular value here. So let's run this one and no forget the callback function. And that is all so I can come back to this place.
Run everything again. So let's try let's see. So I can just come back to my note, I CLR. The GS do to move us into the interactive mode and you can see that particular flash in the right then you should put the push Just go with the help. That's how we have our process there, right? Very interested because I want to actually get you to complete this PR is working.
So here's how to get autocomplete for these particular options, the images, videos and audio. Once I press enter, I can click on tap images come come back again, go with V. Tap. It's convenient, right? Because he gave it a tap is coming. That is something very interesting. Very, very interesting.
So with the ability to do autocomplete comes by default with all of them, for even for the commands and keys. Also, you want to specify autocomplete for a particular value, a particular value, just go with this particular option autocomplete, right, the previous one was auto completion, but that's another been duplicated, we actually just go with the duplicates, that's just going to complete as a basic idea. So it is going to provide all your suggestions here. Right? Then when you run in, it's going to identify from these particular from this particular position. dreaded basic idea about how to add to completion.
Thank you for watching, and see you next session. Stay blessed.