withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.05k stars 63 forks source link

Add a space after the commands, as in a TAB #1155

Open HugoA44 opened 2 years ago

HugoA44 commented 2 years ago

Description:

Example: When I do a git checkout with the usual terminal, when I press tab to auto-complete the word "checkout", a space is added at the end of the sentence to continue. But with Fig, when I auto-complete with enter, the cursor stays at the end of the word "checkout"

Details:

macOS Fig Shell
12.0.1 Version 1.0.56 (B414) /bin/zsh
fig diagnostic

Version 1.0.56 (B414) [French] 
UserShell: /bin/zsh
Bundle path: /Applications/Fig.app
Autocomplete: true
Settings.json: true
CLI installed: true
CLI tool path: /Users/hugoa/.fig/bin/fig
Accessibility: true
SSH Integration: false
Tmux Integration: false
iTerm Integration: true 
Hyper Integration: false
VSCode Integration: true
Docker Integration: false
Symlinked dotfiles: false
Only insert on tab: false
UNIX Socket Exists: true
Installation Script: true
PseudoTerminal Path: 
SecureKeyboardInput: false
SecureKeyboardProcess: 
Current active process: zsh (6674) - /dev/ttys007
Current terminal session: w0t0p0:C600CB93-A46D-418B-8304-9D0BFDEB963A
Current working directory: /Users/hugoa/Desktop/Scorenco/Projet.tmp/front
Current window identifier: 373/% (com.googlecode.iterm2)

mschrage commented 2 years ago

We actually have a setting for this already!

Try run the following command and see if this enables the behavior you want.

fig settings autocomplete.insertSpaceAutomatically true
mschrage commented 2 years ago

Hey @HugoA44! Did this setting turn on the behavior you were expecting?

HugoA44 commented 2 years ago

Hello @mschrage ! It hasn't fixed the problem yet, though the box is well checked in the settings. Thanks for the feedbak