Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp to line with shortcut key #24

Open
Axlyted opened this issue Jan 18, 2022 · 3 comments
Open

Add timestamp to line with shortcut key #24

Axlyted opened this issue Jan 18, 2022 · 3 comments

Comments

@Axlyted
Copy link
Contributor

Axlyted commented Jan 18, 2022

Hey,

I'm using the newday snippet daily and when I want to fill the Activity log, I have to write the current timestamp. I would like to make a keybinding shortcut that will take the current line and add the current timestamp to the left of it OR update the current timestamp if a timestamp is already on the left (similar mechanism to how the checkbox works).

ex.
09:46 --- I do X and then I do Y.
10:59 --- Done with X. Moving forward to Y.

"HH:MM --- " that's the part that I want to auto-generate with a keybinding. We can set it by default to SHIFT + Q or maybe CTRL + K?

the "---" can be replaced with something more fitting. I'm using this one specifically because that's how I'm using it manually today

If you approve it, I'll try to implement it and then submit a PR.

@canadaduane
Copy link
Owner

canadaduane commented Jan 18, 2022 via email

@canadaduane
Copy link
Owner

I just checked "Ctrl+k" on my vscode and it seems to be bound as the initial key of a combo. So maybe "Ctrl+K Ctrl+U" or something would work better?

@Axlyted
Copy link
Contributor Author

Axlyted commented Jan 18, 2022

Let's address the key binding issue when we get there :)

@canadaduane canadaduane changed the title Feature suggestion Add timestamp to line with shortcut key Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants