hintshell 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +28 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -84,11 +84,11 @@ source ~/.bashrc
84
84
 
85
85
  ## 📖 Usage
86
86
 
87
- ### Git Bash (Windows)
87
+ ### Git Bash / WSL2 Bash
88
88
 
89
- After `hs init`, opening a normal interactive Git Bash session automatically starts `hintshell bash`, which renders a local live overlay as you type. `fzf` is not required for this live mode.
89
+ After `hs init`, opening a normal interactive Git Bash or WSL2 Bash session automatically starts `hintshell bash`, which renders a local live overlay as you type. `fzf` is not required for this live mode.
90
90
 
91
- - **↑ / ↓** navigate HintShell suggestions; **Esc** closes the overlay; **Enter** executes through Git Bash.
91
+ - **↑ / ↓** navigate HintShell suggestions; **Esc** closes the overlay; **Enter** executes through Bash.
92
92
  - **Tab** accepts only a compatible command suggestion. Path input such as `cd src/comp`, flags such as `git --ver`, and empty overlays are forwarded to Bash's native completion.
93
93
  - The overlay adapts near the bottom of the terminal: it shows fewer rows when space is limited and stays hidden when a complete frame would scroll the terminal.
94
94
  - To bypass the wrapper for one shell, run:
@@ -97,9 +97,28 @@ After `hs init`, opening a normal interactive Git Bash session automatically sta
97
97
  HINTSHELL_DISABLE_AUTO_BASH=1 bash
98
98
  ```
99
99
 
100
- - Set `HINTSHELL_BASH` to an explicit `bash.exe` path. Set `HINTSHELL_DISABLE_LIVE_OVERLAY=1` to reject the wrapper in unsupported terminals.
100
+ - Git Bash keeps its existing Windows ConPTY backend. WSL2 uses a separate Unix pseudo-terminal backend and preserves the terminal's current working directory; neither changes PowerShell integration.
101
+ - Native Linux Bash retains the existing `Tab`/`fzf` picker instead of starting the live wrapper.
102
+ - Set `HINTSHELL_BASH` to an explicit `bash.exe` path on Git Bash. Set `HINTSHELL_DISABLE_LIVE_OVERLAY=1` to reject the wrapper in unsupported terminals.
101
103
 
102
- > **Preview limitation:** the live wrapper targets ANSI-capable Windows Terminal and mintty. For full-screen terminal applications, bypass the wrapper and open them from a normal Git Bash session.
104
+ > **Preview limitation:** the live wrapper requires an ANSI-capable terminal. For full-screen terminal applications, bypass the wrapper and open them from a normal Bash session.
105
+
106
+ ### macOS Bash / Zsh live overlay (opt-in)
107
+
108
+ macOS retains its native `Tab`/`fzf` integration by default. To opt into the live overlay for interactive Bash or Zsh sessions, add this before running `hs init`, then open a new terminal:
109
+
110
+ ```bash
111
+ export HINTSHELL_ENABLE_MACOS_LIVE_OVERLAY=1
112
+ hs init
113
+ ```
114
+
115
+ The wrapper starts the same shell as a child through the Unix pseudo-terminal backend. It preserves the opening directory and synchronizes the current directory after each prompt, so contextual suggestions follow `cd` changes.
116
+
117
+ - **Tab** keeps native Bash/Zsh path and flag completion authoritative; HintShell accepts only compatible command-prefix suggestions.
118
+ - **Bash escape hatch:** `HINTSHELL_DISABLE_AUTO_BASH=1 bash`
119
+ - **Zsh escape hatch:** `HINTSHELL_DISABLE_AUTO_ZSH=1 zsh`
120
+ - To roll back to the default picker, remove or unset `HINTSHELL_ENABLE_MACOS_LIVE_OVERLAY`, run `hs init`, and start a new terminal.
121
+ - Use an escape hatch for full-screen terminal applications or any profile whose startup plugins are not compatible with a PTY wrapper.
103
122
 
104
123
  ### Zsh / Bash (macOS/Linux)
105
124
 
@@ -122,11 +141,11 @@ Each request includes the current working directory and shell. HintShell merges
122
141
 
123
142
  ---
124
143
 
125
- ## ✨ What's new in 0.3.0
144
+ ## ✨ What's new in 0.3.2
126
145
 
127
- - Context-aware suggestions merge local/global history with path, workspace, Git, npm, Docker, SSH, and zoxide candidates.
128
- - Git Bash launches the live overlay automatically after `hs init`; Bash retains authority for path and flag completion.
129
- - The live overlay scrolls long result sets and avoids stale rendering at the bottom of the terminal. See [CHANGELOG.md](./CHANGELOG.md).
146
+ - WSL2 Bash now launches the same realtime live overlay as Git Bash while preserving the terminal's current workspace directory.
147
+ - Git Bash remains on the Windows ConPTY backend and PowerShell behavior is unchanged.
148
+ - Native Linux/macOS Bash continues using the existing `Tab`/`fzf` picker. See [CHANGELOG.md](./CHANGELOG.md).
130
149
 
131
150
  ## 🔄 Updating
132
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hintshell",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Local, context-aware real-time command suggestions for PowerShell, Bash, and Zsh.",
5
5
  "keywords": [
6
6
  "shell-assistant",