Comments (7)
Hi,
First of all thanks for the project, it saves me a lot of time.
Thanks a lot :) Curious how you use the library.
Here you add listeners for the up and down keys and prevent the default behavior. Because of this, the nano editor cannot use the up and down keys
Very good point. Basically most of arrow key inputs are not available and that's not correct!
Im thinking of removing the prevent modifiers and add event.preventDefault() in the increaseHistory and decreaseHistory methods. So that you can disable the history when the nano editor is started. What do you think?
Yeah, that's the way to go. Maybe like this:
increaseHistory (event) {
if (this.disableHistory || this.isInProgress) {
return
}
event.preventDefault()
}
isInProgress
is true
when a command executing, which would be the case if the Nano editor has been started.
from vue-command.
Thanks a lot :) Curious how you use the library.
For my personal website.
Very good point. Basically most of arrow key inputs are not available and that's not correct!
What do you mean?
from vue-command.
It seems that this issue will be fixed by #146.
from vue-command.
For my personal website.
I like it! Feels super native in full screen 💪
What do you mean?
I just meant that every application that uses my library cannot assign the arrow keys because it's overwritten by the library. Just wanted to underline it's definitely a bug!
It seems that this issue will be fixed by #146.
Ah no, I close it right away. I tried around but wasn't happy with the final API design. Your PR is welcome :)
from vue-command.
@WitteStier does the problem still persist? If yes, I'll reopen the issue.
from vue-command.
Hi,
Yes the problem is still there. I also found another related bug, if you open the nano editor and press Ctrl + r, the search command will be opened and closes the nano editor. So i created a PR to prevent the default events when the last command is still in progress.
from vue-command.
🎉 This issue has been resolved in version 21.0.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
from vue-command.
Related Issues (20)
- Error:Uncaught (in promise) TypeError: Cannot read property 'scrollHeight' HOT 3
- Bug: Wrong prompt display when updated during command execution HOT 3
- Feature: Execute command programmatically from outside HOT 2
- Question: 1: Could I send some commands via a button? 2: Could I put some texts in it without typing command? HOT 1
- Question: How to pass non-parameter variable to command object HOT 1
- Question: TTY / SSH support HOT 1
- Question: Example of polling
- I try to use vue-command in my vue3+vite project but failed HOT 4
- createStdout always return [object Object]
- Chore: Upgrade to Vue.js 3 HOT 1
- After clear command, the in/output break HOT 4
- Feature: More command operators
- how to use tableFormatter
- how to get full command string HOT 2
- How to manually trigger command execution? HOT 1
- Tests: Add more tests HOT 1
- Cursor position is not calculated correctly HOT 2
- Add logic signal by Ctrl+C HOT 2
- Example on how to stream logs
- How to build/test locally? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-command.