Feature request: option to press Return after inserting dictation (auto-send in chat boxes)

Đang mở Phù hợp với người mới
#1,321 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
macos, rust, tauri
Lĩnh vực
cli, desktop

Hướng nghiên cứu

Đường chèn nằm trong macos_streaming_input.rs, nơi kiểm tra ngắt dòng hiện có (MacosNewlineMode::Return với '\n') và classify_mac_keystroke / MacKeystroke::Return đã gửi phím Return. Hãy bắt đầu bằng cách đọc cách thao tác chèn thông thường, không streaming, báo kết quả thành công; sau đó thêm một Return tùy chọn sau thao tác đó, được điều khiển bởi một công tắc mới và độ trễ 0-1000 ms. Hoàn thành khi cài đặt mặc định là tắt, Return chỉ được gửi sau khi chèn thành công và không rỗng, và có test hoặc kiểm tra thủ công bao phủ điều này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment: OpenLess 2.0.2-Beta.3+build.20261026-c9f49c60, macOS 27.2 (26B123) arm64. Traditional pipeline, clipboard/keystroke insertion.

What I want

An option to press Return once after a successful insert, so dictation can be used hands-free in a chat input box: speak, release, and the message sends itself. Right now every dictation into Slack / a web chat / an internal bot ends with reaching for the keyboard, which defeats the point of a push-to-talk tool.

Current behaviour

There is no such setting. The closest thing is Line breaks (Recording & input → Insertion & clipboard), but it only affects newlines inside the inserted text — MacosNewlineMode::Return fires only when the text contains \n (macos_streaming_input.rs, if self.newline_mode == MacosNewlineMode::Return && posted.contains('\n')).

Polished output almost never contains a newline, so that path can't be used. I tried the workaround of instructing the model to end its reply with a line break: deepseek-chat returned 'We should probably review the numbers again before Friday.' with no trailing newline even with an explicit system-prompt rule. So there is no configuration-only way to get this.

Proposal

Add a toggle in Insertion & clipboard:

  • "Press Return after insert" — off by default.
  • Optional delay (0–1000 ms) before the Return, so slow targets finish accepting the paste.
  • Applies to the normal (non-streaming) insert path only, and only after a successful insert — never on failure or when the transcript was empty.

Implementation looks small: the Return keystroke machinery already exists for the Line breaks setting (classify_mac_keystroke → MacKeystroke::Return), so this is one extra key event after the insert completes.

Please keep it off by default

Sending a message is irreversible — a misfire posts half a sentence to a colleague. Default off, opt-in per user, is the right trade.

Happy to test a build.

Ngôn ngữ chính
Rust
Star
3.7k
Fork
349
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Open-Less/openless

Tất cả issue của Open-Less/openless

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.