View Single Post
  #1  
Old 01-09-2019, 01:04 PM
ZekeB ZekeB is offline
Registered User
 
Join Date: Jan 2019
Posts: 3
Question Keymap adding variables to Send String

Here's my use case: I'm doing a tail -f on a file and I have a mapping to send a string that hits return several times, draws a line of dashes, then a few more returns.

That works fine. What I'd really like is the ability to insert variables into the string such as the current time as I've mocked up below.


\n\n\n\n\n------------------{HH:MM:SS}---------------------------------\n\n\n

Is there a way to do this? The session is in tail, so doing a date +%H:%M:%S or something similar that would have to be processed on the server won't help.
Reply With Quote