hintshell 0.3.12 → 0.3.14

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 +22 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -126,9 +126,6 @@ The emitted profile has this shape (the rcfile path reflects your own user direc
126
126
  "Git Bash Fast + HintShell": {
127
127
  "path": "C:\\Users\\<you>\\.hintshell\\bin\\hintshell.exe",
128
128
  "args": ["bash", "--rcfile", "/c/Users/<you>/.hintshell/git-bash-fast.bashrc", "-i"],
129
- "env": {
130
- "TERM": "xterm-256color"
131
- },
132
129
  "icon": "terminal-bash"
133
130
  }
134
131
  }
@@ -157,14 +154,31 @@ Open a new terminal after initialization. The wrapper starts the same shell as a
157
154
 
158
155
  **Tab-to-Suggest** uses `fzf` when available. Type `git ` and press **Tab** to open a ranked command picker; **Enter** fills the command line. If `fzf` is unavailable, HintShell uses the top matching command without emitting an executable-path error.
159
156
 
160
- ### Context-aware suggestions
157
+ ### Context-aware suggestions & Smart Directory Navigation
161
158
 
162
159
  Each request includes the current working directory and shell. HintShell merges bounded contextual candidates with local and global history, then ranks the combined list once.
163
160
 
164
- - Paths for supported argument positions, including `cd`, `pushd`, `mkdir`, `rmdir`, `cat`, `rg`, `git add`, and `docker build`.
165
- - Git branches/remotes, npm-family scripts, Docker entities, SSH hosts, and zoxide directories when the command and local runtime are available.
166
- - Local-history matches are boosted only for the active directory; prefix quality remains more important than contextual or fuzzy matches.
167
- - Filesystem scans, workspace detection, and external commands are bounded, cached where appropriate, and fail closed. Context candidates never write themselves to command history.
161
+ - **Smart `cd` Suggestions**: Typing `cd ` automatically lists directories in your current folder sorted by recent modification time (`mtime`), while keeping your #1 most frequent/recent command on top. Shortcut completions like `cd ..` and `cd -` are included out of the box.
162
+ - **Deep Tech Stack Detection**: Automatically senses workspace marker files (`pnpm-lock.yaml`, `bun.lockb`, `yarn.lock`, `Cargo.toml`, `docker-compose.yml`, `.git/index`) to recommend contextual dev, build, test, and git workflow commands.
163
+ - **Typo Tolerance & Substring Matching**: Tolerates single-character command typos (`gti` $\rightarrow$ `git`, `dcoker` $\rightarrow$ `docker`) with automatic substring (`contains`) fallback matching.
164
+ - **Paths & Tool Arguments**: Paths for supported argument positions, including `cd`, `pushd`, `mkdir`, `rmdir`, `cat`, `rg`, `git add`, and `docker build`.
165
+ - **Entity Suggestions**: Git branches/remotes, npm-family scripts, Docker entities, SSH hosts, and zoxide directories when the command and local runtime are available.
166
+ - **Privacy & Performance**: Filesystem scans, workspace detection, and external commands are bounded, cached where appropriate, and fail closed. Context candidates never write themselves to command history.
167
+
168
+ ### 🎨 Customization (`~/.hintshell/config.toml`)
169
+
170
+ HintShell creates a configuration file at `~/.hintshell/config.toml` automatically on initial setup:
171
+
172
+ ```toml
173
+ # Popup border color: "purple" (default), "rainbow" / "gemini", "blue", "cyan", "green", "yellow", "orange", "pink", "magenta", "minimal"
174
+ border_color = "purple"
175
+
176
+ # Maximum number of suggestions shown in popup overlay (default: 6)
177
+ max_visible = 6
178
+
179
+ # Enable inline ghost text completion preview (default: true)
180
+ ghost_text = true
181
+ ```
168
182
 
169
183
  ### PowerShell (Windows/Unix)
170
184
  **Real-time Overlay**: Suggestions appear automatically as a floating panel beneath your cursor as you type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hintshell",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Local, context-aware real-time command suggestions for PowerShell, Bash, and Zsh.",
5
5
  "keywords": [
6
6
  "shell-assistant",