Realizing that the plugin would need frequent bug fixes, I knew I needed an easy way to release updates. After iterating on it for my own uses, I decided to turn it into a product. Little details caught my attention, like the rounding of selection corners.Ī couple of weeks in I started writing a Python plugin for deploying to our development servers. It felt similar to TextMate, only I didn’t need a Mac. The combination of performance, multiple cursors and the extensibility made it a shoo-in. Especially on Linux, the editor experience was unlike anything else available. Previously it was Windows-only, but the new version supported Linux and Mac also. The result was really solving for user needs, instead of just building to a spec.Īlways on the lookout for improving my tools, I discovered Sublime Text X in early 2011. It empowered us to make better decisions as we worked. Meeting with clients and discussing their projects, it became clear how important it was to understand the Why of a project. In such an environment, I was able to learn quite a bit about programming, design and even a little about business development. I spent the early part of my career working at a web agency, where we built sites and apps for many different clients. The following are some of my reflections on what defines Sublime Text – both now and looking towards the future. In 2016, after years of involvement in the community, I had an opportunity to join the team. Little did I know how much that product would end up influencing my career. Ten years ago I downloaded the beta of a newly cross-platform text editor. Is there just no way to override the save function?Įdit: I've ended up just overriding the default key binding to a TextCommand, and there seem to be no problems.Developer tools have always been a passion of mine, from libraries to the command line. I hoped to do this by using the on_text_command or on_window_command triggers, but it seems that the save command doesn't trigger either of these (maybe it's an application command? But there's no on_application_command). Any thoughts?Įdit: I think I could do it cleanly by overriding the default save command. ().set('ENCODED', False)īut this is messy and if the user cancels the encryption then the plaintext file gets saved, which isn't ideal. View.window().show_input_panel(message, "", self.on_done, None, None) There's a hook in the API that's executed before a save is executed, so my naïve implementation is: class TranscryptEventListener(sublime_plugin.EventListener): I'm making a plugin in Sublime Text that prompts the user for a password to encrypt a file before it's saved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |