fig icon indicating copy to clipboard operation
fig copied to clipboard

Fig interprets shell autosuggestions as typed text

Open Cygnusfear opened this issue 3 years ago • 6 comments

Sanity checks

  • [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • [X] I have run fig doctor in the affected terminal session
  • [X] I have typed 'git ' and included a screenshot of the Debugger (click the Fig icon in the macOS menu bar)

Issue Details

Description:

Fig in Alacritty only activates suggestions after a backspace (also using Fish)

Screenshot 2022-05-25 at 19 25 51

https://user-images.githubusercontent.com/2925132/170339505-af8223e1-1ae6-49d8-8610-0b4ffa3b756d.mp4

Environment

|OS|Fig|Shell|
|-|-|-|
|macOS 12.3.1 (21E258)|1.0.57|/usr/local/bin/fish|
<details><summary><code>fig diagnostic</code></summary>
<p>

# Fig Diagnostics
## Fig details:
  - Fig version: Version 1.0.57 (B450) [ABC]
  - Bundle path: /Applications/Fig.app
  - Autocomplete: true
  - Settings.json: true
  - Accessibility: true
  - Number of specs: 0
  - Symlinked dotfiles: true
  - Only insert on tab: false
  - Keybindings path: 
  - Installation Script: true
  - SecureKeyboardInput: false
  - SecureKeyboardProcess: <none>
## Hardware Info:
  - Model Name: MacBook Pro
  - Model Identifier: MacBookPro18,2
  - Chip: 
  - Cores: 10
  - Memory: 64 GB
## OS Info:
  - macOS 12.3.1 (21E258)
## Environment:
  - User Shell: /usr/local/bin/fish
  - CLI Installed: true
  - Executable Location: /usr/local/bin/fig
  - Current Window ID: 274/% (io.alacritty)
  - Active Process: fish (26724) - /dev/ttys001
  - Installed via Brew: true
  - Environment Variables:
    - FIG_TERM=1
    - FIG_INTEGRATION_VERSION=8
    - FIG_TERM_VERSION=4.4.0
    - TERM=alacritty
    - FIG_PID=26724
    - TERM_SESSION_ID=9EBB7ED9-BBF1-4FED-B360-302BA3D57AF5
## Integrations:
  - SSH: false
  - TMUX: false
  - iTerm: installed!
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false

</p>
</details>

Cygnusfear avatar May 25 '22 18:05 Cygnusfear

Hmmm... would you be able to send your shell config so we can reproduce this? A fix should have gone out for this but it seems that it didn't fix it for you.

What we need to know:

  • Which autosuggest plugin are you using?
  • How is it configured? Which colors?

clo4 avatar May 27 '22 01:05 clo4

Sure: https://hackmd.io/IGFf5aFxSmGLG1hzS34eDQ

I'm sorry but I'm not sure I understand the other questions as formulated.

Hope it helps 🙏

Cygnusfear avatar May 27 '22 11:05 Cygnusfear

Ahh, fish! Cool, that makes this easier 😄 Can you run echo $fish_color_autosuggestion and send the output?

clo4 avatar May 30 '22 07:05 clo4

👍 555 brblack

Cygnusfear avatar May 30 '22 14:05 Cygnusfear

Wow, that was incredibly easy to reproduce! (that's the default color but I'd disabled autosuggestions 🤦🤦🤦)

cc @grant0417

Interestingly the same setup works in other terminals also using IME, just not Alacritty

clo4 avatar Jun 02 '22 01:06 clo4

Sure: https://hackmd.io/IGFf5aFxSmGLG1hzS34eDQ

I'm sorry but I'm not sure I understand the other questions as formulated.

Hope it helps 🙏

On Fri, May 27, 2022 at 2:03 AM Robert @.***> wrote:

Hmmm... would you be able to send your shell config so we can reproduce this? A fix should have gone out for this but it seems that it didn't fix it for you.

What we need to know:

  • Which autosuggest plugin are you using?
  • How is it configured? Which colors?

— Reply to this email directly, view it on GitHub https://github.com/withfig/fig/issues/1490#issuecomment-1139185588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWKETF7QOJCZPTP44V7DXTVMANMXANCNFSM5W6AK6SA . You are receiving this because you authored the thread.Message ID: @.***>

Cygnusfear avatar Oct 11 '22 07:10 Cygnusfear