It can often be necessary to gather some input from a user in order for a command to know what exactly it should do. However we know that commands take explicit arguments, so how do we gather this kind of information? The answer is Input Handlers.
Sublime Text allows commands to prompt the user for the values of missing arguments in a free form manner, allowing for gathering arbitrary strings of text, choosing items from a list, doing input validation and even providing a preview of what the command can do.
In this lesson we go over the very basics of input handlers and how to implement them, to gain a foundation on which to show some of the more advanced capabilities of this powerful feature.
00:00 - Introduction
01:40 - Asking the user for input
04:23 - Introduction to Input Handlers
09:59 - Sample Plugin Walkthrough
17:01 - Sample Demonstration
21:47 - Lesson Recap
Plugin 101 playlist: • Plugin 101 - How to write Packages for Sub...
The super powers of the Arithmetic command: • [CQ33] The super powers of the secret Arit...
Viewing and modifying package files: • [QT02] How to safely modify a package file...
Sublime Configuration: https://git.io/fARZ9
Official Documentation: https://www.sublimetext.com/docs/3/
Unofficial Documentation: https://docs.sublimetext.io/
Sublime Forum: https://forum.sublimetext.com/
Sublime Discord: / discord
Configuring Sublime Text: • [CQ15] How does the config system in Subli...
Watch live streams: https://odatnurd.net/live
#SublimeText #Plugin101 #Tutorial
Subscribe for more videos: https://www.youtube.com/user/nurdz?su...
Subscribe for more Sublime live streams: / @terencemartinlive
Follow me on Twitter: / odatnurd