How can one establish a keyboard shortcut for inserting the current date in Gedit? [duplicate]
Solution 1:
In Gedit click the cog-wheel and choose Preferences
Open the Plugin
-tab and enable External Tools
.
Close the Preferences
-window and click the cog-wheel again, you will find the option
Manage External Tools...
now, select it to open the Manage External Tools
-window:
Click the +
button to add a new function and give it a name, add the date
-command with the options of your choice, click the Shortcut key
-button and assgin a shortcut and in the Output
-field choose Insert at cursor position
from the drop-down-menu.
Close the Manage External Tools
-window and test the new keyboard-shortcut in the main gedit window.
Reference: Timestamp Keyboard Shortcut In gedit
Solution 2:
Adding to the accepted answer, I have put together a GitHub project with some additional information and a Gedit extension file that can be directly downloaded and then copy/pasted into location -
https://github.com/harrison-broadbent/gedit-insert-date
Hope anyone stumbling on this finds this project useful!