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

Feat/cycle through commands #605

Merged
merged 5 commits into from
Mar 19, 2024
Merged

Conversation

PaulDremanovich
Copy link
Member

@PaulDremanovich PaulDremanovich commented Mar 12, 2024

https://trello.com/c/ZnpoHark/364-feat-cycle-through-commands-with-arrow-keys


You can use ADAMANT for managing bots.

Every bot command starts with a slash /.

In case if:

The input field is focused and empty
Arrow keys Up and Down:

Cycle through the previous sent commands
Only commands in local storage, don’t upload messages from blockchain
Put a cursor to the end of text
Up is the previous command, Down is next
Down does nothing if it pressed before the first Up
Up does nothing if we reached the very first command in a chat
Cycling state is paused when:

A command (the input filed) is modified during cycling
Cycling is restarted when:

A user clears the input field

Screencast.from.14.03.2024.18.51.48.webm

Copy link

vercel bot commented Mar 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
adamant-im ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 16, 2024 4:57pm

@PaulDremanovich
Copy link
Member Author

Copy link

github-actions bot commented Mar 12, 2024

Deployed to https://msg-adamant-pr-605.surge.sh 🚀

src/components/AChat/AChatForm.vue Outdated Show resolved Hide resolved
src/lib/chat/helpers/isSingleSymbol.ts Outdated Show resolved Hide resolved
src/components/AChat/AChatForm.vue Outdated Show resolved Hide resolved
src/components/AChat/AChatForm.vue Show resolved Hide resolved
src/components/AChat/AChatForm.vue Outdated Show resolved Hide resolved
@adamant-al
Copy link
Member

@PaulDremanovich

  • Fill the description for each PR.
  • Add a name of a Trello card and a link to it
  • Add screenshot if it's informative

@RealGoodProgrammer RealGoodProgrammer merged commit c0272ab into dev Mar 19, 2024
3 checks passed
@RealGoodProgrammer RealGoodProgrammer deleted the feat/cycle-through-commands branch March 19, 2024 09:06
Copy link

Successfully tore down https://msg-adamant-pr-605.surge.sh 🥲

@RealGoodProgrammer RealGoodProgrammer mentioned this pull request Mar 19, 2024
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

Successfully merging this pull request may close these issues.

4 participants