Bug 494350 - No bug, please implement a shortcut to insert a formatted date and time stamp into the text
Summary: No bug, please implement a shortcut to insert a formatted date and time stamp...
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-09 13:40 UTC by petrowanton
Modified: 2024-10-12 10:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petrowanton 2024-10-09 13:40:18 UTC
No bug, please implement a shortcut to insert a formatted date and time stamp into the text. I found some instructions for  to use external scripts, but this is too complicated for me.
regards
Comment 1 Waqar Ahmed 2024-10-09 14:08:16 UTC
Can you try this:

-> Press F7
-> type "date"
-> Press Enter
Comment 2 Waqar Ahmed 2024-10-11 07:00:31 UTC
As mentioned, we have "date" command that can do this. Type "help date" to see the available formatting options. 

You can write your own command in javascript that invokes "date" with the right format.
Comment 3 petrowanton 2024-10-11 18:55:19 UTC
wow. Thanks a lot. 
I wonder, why is this function so hidden and difficult to find?
Would it be very difficult for the developers to program a user-friendly shortcut or place “date” in the menus?
Comment 4 Kåre Särs 2024-10-12 10:19:33 UTC
If we add a menu entry for every imaginable feature, we will end up with a menu tree the size of the Amazon Rainforest ;)