gdx 0.1.1 → 0.2.0

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![License](https://img.shields.io/badge/license-MIT-blue.svg) ![Status](https://img.shields.io/badge/status-experimental-orange.svg)
6
6
 
7
7
  > [!WARNING]
8
- > **⚠️ PRE-ALPHA WARNING:** This project is currently in a "trial phase" (i.e., I'm dogfooding it daily). Expect breaking changes, missing features, and the occasional hiccup.
8
+ > **⚠️ ALPHA WARNING:** This project is currently in a "trial phase" (i.e., I'm dogfooding it daily). Expect breaking changes, missing features, and the occasional hiccup.
9
9
 
10
10
  ---
11
11
 
@@ -81,15 +81,21 @@ bun install
81
81
  bun run build
82
82
  ```
83
83
 
84
- Your compiled binary will be in `./dist/gdx` (or `./dist/gdx.exe` on Windows).
84
+ Your compiled binary will be in `./dist/` folder.
85
85
 
86
86
  </details>
87
87
 
88
88
  ### Optional: Shell Integration
89
89
 
90
- To enable features like `gdx parallel switch` (auto-cd into worktrees), you need to add shell integration.
90
+ To enable features like `gdx parallel switch` (auto-cd into worktrees) and **tab completion**, you need to add shell integration.
91
91
 
92
- To do this add the following line to the **End** of your shell profile (`~/.bashrc`, `~/.zshrc`, etc.):
92
+ Shell integration provides:
93
+
94
+ - **Auto-cd support**: Allows `gdx parallel switch` to change directories
95
+ - **Tab completion**: Intelligent completion for gdx commands, shorthands, and git subcommands
96
+ - **Git fallback**: Falls back to native git completion when gdx has no suggestions (git fallback requires you to install git's completion scripts separately)
97
+
98
+ To add shell integration, add the following line to the **End** of your shell profile (`~/.bashrc`, `~/.zshrc`, etc.):
93
99
 
94
100
  #### For bash and zsh:
95
101
 
@@ -112,6 +118,10 @@ To find your profile path, run `$PROFILE` in PowerShell.
112
118
  Invoke-Expression (& { (gdx --init --shell pwsh | Out-String) })
113
119
  ```
114
120
 
121
+ > [!TIP]
122
+ > You can add `--cmd` to the `gdx --init` command to create custom aliases.
123
+ > For example, `gdx --init --shell zsh --cmd g` will create `g` as an alias for `gdx`.
124
+
115
125
  ## Core Features
116
126
 
117
127
  ### 1. Intelligent Shorthands
@@ -169,6 +179,7 @@ Git stash is great until you need to clean it up.
169
179
  gdx sta l # git stash list
170
180
  gdx sta d 2..6 # Drops stashes 2 through 6.
171
181
  # (Drops high->low to prevent index shifting)
182
+ gdx sta d pardon # Restores the last dropped stash.
172
183
  ```
173
184
 
174
185
  ### 6. AI-Powered Commits
@@ -231,7 +242,7 @@ This project uses **Bun** for development because it's fast and the developer ex
231
242
  Since this is currently a solo "scratch your own itch" project, the roadmap is fluid, but here is what is on the horizon:
232
243
 
233
244
  - [x] **Configurability:** Allow users to define their own shorthands in a `.gdxrc.toml` file.
234
- - [ ] **Shell Integration:** Auto-completion scripts for Zsh/Bash/Fish/Powershell.
245
+ - [x] **Shell Integration:** Auto-completion scripts for Zsh/Bash/Fish/Powershell with git fallback.
235
246
  - [ ] **Commit with specified editor:** like, `gdx commit --vim` to open Vim for commit messages.
236
247
  - [ ] **Quick commit:** `add`, `commit`, and `push` in one command like `gdx qc -pa` (`git add . && gdx commit auto && git push`)
237
248
  - [x] **Quick linting before push:** `gdx lint` to run following checks before pushing:
@@ -240,13 +251,13 @@ Since this is currently a solo "scratch your own itch" project, the roadmap is f
240
251
  - conflict markers
241
252
  - abnormal file sizes
242
253
  with an option to automatically run lint before every push (bypass with `gdx push --no-lint`)
243
- - [ ] **Undoable stash drop**
254
+ - [x] **Undoable stash drop**
244
255
  - [x] **Parallel worktree switching** `gdx parallel switch` Jump between forks (auto-cd) (requires shell integration with `gdx --init --shell`)
245
256
  - [ ] **Seamless Integration with fzf and cloc**
246
257
  automatically detect and use fzf and/or cloc if installed for:
247
258
  - Interactive fuzzy search for branches, commits, stash, log and files instead of `less`
248
259
  - Code line statistics in `gdx stats` using `cloc`
249
- - [ ] **gdx clear Untracked files support**: `gdx clear` currently only saves changes to tracked files. Add an option to back up untracked files as well.
260
+ - [x] **gdx clear Untracked files support**: `gdx clear` now automatically backs up untracked files in the patch.
250
261
  - [ ] **gdx migrate**: move dirty changes to another branch/worktree without committing.
251
262
 
252
263
  ## License