-
Notifications
You must be signed in to change notification settings - Fork 289
Feature: Repeat Ctrl commands #613
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
base: main
Are you sure you want to change the base?
Conversation
Nice! Could you add a test about the implementation? 🙏 |
I added a test for this. Let me know if its enough, or I need to add more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments, looks good otherwise
parser/parser.go
Outdated
// return []Command{p.parseCtrl()} | ||
return p.parseCtrl() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// return []Command{p.parseCtrl()} | |
return p.parseCtrl() | |
return p.parseCtrl() |
parser/parser.go
Outdated
return Command{Type: token.CTRL, Args: ctrlArgs} | ||
repeat, _ := strconv.Atoi(p.parseRepeat()) | ||
|
||
var cmds []Command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var cmds []Command | |
cmds := make([]Command, 0, repeat) |
Updated accordingly. |
Nice! thank you |
solve issue #340