mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: remove debug console.log statements
This commit is contained in:
parent
fa1a637af5
commit
7506b031f3
3 changed files with 0 additions and 12 deletions
|
|
@ -15,7 +15,6 @@ import fuzzysort from "fuzzysort"
|
|||
import { useCommandDialog } from "./dialog-command"
|
||||
import { useKeybind } from "../context/keybind"
|
||||
import { Clipboard } from "../../../../util/clipboard"
|
||||
import { useKeyboard } from "@opentui/solid"
|
||||
|
||||
export type PromptProps = {
|
||||
sessionID?: string
|
||||
|
|
@ -49,14 +48,6 @@ export function Prompt(props: PromptProps) {
|
|||
if (dialog.stack.length > 0) input.blur()
|
||||
})
|
||||
|
||||
useKeyboard((evt) => {
|
||||
console.log({
|
||||
focused: input.focused,
|
||||
name: evt.name,
|
||||
sessionID: props.sessionID,
|
||||
})
|
||||
})
|
||||
|
||||
return (
|
||||
<>
|
||||
<Autocomplete
|
||||
|
|
@ -81,7 +72,6 @@ export function Prompt(props: PromptProps) {
|
|||
<input
|
||||
onPaste={async function (text) {
|
||||
const content = await Clipboard.read()
|
||||
console.log(content)
|
||||
if (!content) {
|
||||
this.insertText(text)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ export function init() {
|
|||
option: evt.option,
|
||||
}
|
||||
for (const key of keybind) {
|
||||
console.log("compareing", key, parsed)
|
||||
if (Keybind.match(key, parsed)) {
|
||||
return true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ export function Session() {
|
|||
|
||||
const keybind = useKeybind()
|
||||
useKeyboard((evt) => {
|
||||
console.log(evt.name)
|
||||
if (keybind.match("messages_page_up", evt)) scroll.scrollBy(-scroll.height / 2)
|
||||
if (keybind.match("messages_page_down", evt)) scroll.scrollBy(scroll.height / 2)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue