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

Replace last message #67

Closed
zimme opened this issue Feb 18, 2015 · 1 comment · Fixed by #82
Closed

Replace last message #67

zimme opened this issue Feb 18, 2015 · 1 comment · Fixed by #82

Comments

@zimme
Copy link

zimme commented Feb 18, 2015

It would be awesome to replace the last message or maybe to add a parameter to the clear command to clear only the n number of messages.

I need this for download indication in my version of the composer package, which will hopefully replace the current one.

Right now i check if the message starts with downloading: and if so I just clear but that clears everything, when I really just need to replace the previous message if that also contains downloading:

@zimme
Copy link
Author

zimme commented Feb 18, 2015

I'm thinking .slice(-n).remove() for body and .splice(-n,n) for messages if you add index to clear function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants