Replies: 8 comments 6 replies
-
Check for this entry in the help file ( Then for mapping search for |
Beta Was this translation helpful? Give feedback.
-
@1dancook, thanks for your answer! However, The point is, I'd like to press a hotkey and automatically / programmatically get the current cell filled with the current date. Which will not change tomorrow :) |
Beta Was this translation helpful? Give feedback.
-
may be adding and @if to not override if date already has been filled? |
Beta Was this translation helpful? Give feedback.
-
Actually what I suggested I believe it wont work. Dont really know if this is possible, even on sc. |
Beta Was this translation helpful? Give feedback.
-
I am sorry I don't have a lot of time to play around with this myself at the moment, but I wonder if something like this might work: Make
Then in sc-im you need to call the script with: I tried this and it doesn't work!! Theoretically we are putting a string value in the label and just getting the lua script to overwrite the label with the date string. @andmarti1424 is there a possible bug here? I'm also pretty tired, maybe I missed something or there might be a way to do it similar to this. I haven't written about this yet as a discussion topic, but I think being able to call a script as a command will be really great. |
Beta Was this translation helpful? Give feedback.
-
I was able to sit down and try this again. I have it working. 1- Make
|
Beta Was this translation helpful? Give feedback.
-
Well, there's an easier way after all :) (
I.e., thanks to |
Beta Was this translation helpful? Give feedback.
-
I found simplifying just using @now instead of externally calling date works just as well since its valueized it wont change in future.
|
Beta Was this translation helpful? Give feedback.
-
Probably, a very simple question, just can't wrap my head around it...
So, let's say I want to create a mapping that would populate the selected cell with the current date in
%Y-%m-%d
format. Where do I start?It seems that
sc-im
alone can't solve this problem, right? So, probably calling@ext
? or some external script? or@lua
/ lua script? would be a way to go? But how do I combine all this? :)Really, any help will be deeply appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions