Re:I still like Sublime Text in 2025
by james2doyle on Wednesday January 29, 2025 @02:10PM
(#42869643)
I think it would be cool to see some built-in commands for common things like that. But I think the fact that your plugin is so small and so quick to add, proves that going that route is probably the best one. I'm sure if there was a plugin out there that added dozens of these little commands, it would probably do pretty well.
Re:I still like Sublime Text in 2025
by ben-schaaf on Thursday January 30, 2025 @12:56AM
(#42875300)
You can achieve the same thing using the arithmetic command in the command palette: `__import__('datetime').datetime.now().strftime("%Y-%m-%d %H:%M")`.
That reminds me, I wonder if Sublime Text still has room to improve in some areas. Here's an example, in Vim generating a date stamp is a one liner incl. text expansion[0], whereas in Sublime Text, one has to write a multi line plugin and a separate keyboard shortcut[1] to get the same functionality as that of Vim.
[0]: https://gist.github.com/ckunte/2d7a750e6cf8b96f98f028e90c8ab...
[1]: https://gist.github.com/ckunte/31500c17452b0fd8c55bc9460bd9c...