Open amay5267 opened 1 year ago
Hi @amay5267,
I'm sorry, I do not intend to add a feature like this. I have seen you were able to achieve this in Textadept, but it makes sense there since you can write your own lua scripts. Turbo does not support scripting and I don't think there should be a specific feature for this.
Hi @magiblot I am very sorry to hear that. It is such a basic feature for text editor. For example Notepad in Windows is doing it.
I am willing to implement it. Is it ok for turbo using cpp chrono library?
Would Ctrl+D or Ctrl+T be right shortcut?
Hi @amay5267! I didn't know Notepad had such a feature. I have nothing against implementing this in the same way as Notepad does it. If you are willing to give a try at implementing it, using functions from the standard library is perfectly fine.
Would Ctrl+D or Ctrl+T be right shortcut?
No, these shortcuts are assigned to more important commands. It should be enough to add a menu entry (Edit > Insert Time/Date
, like in Notepad).
As a workaround I use this Unix command output: date -R
Hi @magiblot
Any API to insert current timestamp like this?: Wed Oct 12 15:15:00 2022