Commit graph

206 commits

Author SHA1 Message Date
Artturin
3bdb4b8215 Update nix-index-database urls
Some checks failed
Test / tests (macos-latest) (push) Has been cancelled
Test / tests (ubuntu-latest) (push) Has been cancelled
2025-12-08 14:48:09 +02:00
Artturin
99550c266d
Merge pull request #114 from KATANAND/patch-1
update link to Prebuilt index in README
2025-12-08 14:46:59 +02:00
KATANAND
d8051d92d1
update link to Prebuilt index in README
If this change is desired, perhaps src/index.rs can also be updated
959d143211/src/index.rs (L11)
2025-12-07 17:50:49 +03:00
Artturin
959d143211
Merge pull request #112 from nix-community/dependabot/github_actions/actions/checkout-6
Some checks failed
Test / tests (macos-latest) (push) Has been cancelled
Test / tests (ubuntu-latest) (push) Has been cancelled
Bump actions/checkout from 5 to 6
2025-11-27 19:10:55 +02:00
Artturin
067ed4a8fc
Merge pull request #113 from linyinfeng/command-not-found-fish
Fix argv expansion in command-not-found.fish
2025-11-27 19:10:23 +02:00
Lin Yinfeng
dfc683f757
Fix argv expansion in command-not-found.fish 2025-11-24 20:52:25 +08:00
dependabot[bot]
09366938e1
Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 12:10:59 +00:00
Artturin
0ba771882b Add nix-index-database to installation section 2025-09-29 19:26:38 +03:00
Artturin
c6dc8de2ff Update readme 2025-09-29 19:18:29 +03:00
dependabot[bot]
531e5219b2 Bump actions/checkout from 4 to 5
Signed-off-by: dependabot[bot] <support@github.com>
2025-08-28 00:45:14 +03:00
Artturin
f07648b68d Fix cross 2025-08-27 18:54:12 +03:00
Artturin
995b210e86 v2.3.3 2025-07-29 15:52:51 +03:00
Artturin
0009f37aa2 Install handlers in a location where they won't be autoloaded 2025-07-29 15:51:05 +03:00
Artturin
6f2e7c6306 Revert "Remove command-not-found handlers, will be readded in a module"
This reverts commit 76a9931873.
2025-07-29 15:37:33 +03:00
Artturin
6c400809d6 v2.3.2 2025-07-29 15:30:58 +03:00
Artturin
76a9931873 Remove command-not-found handlers, will be readded in a module 2025-07-29 15:27:35 +03:00
Artturin
28dcca3e5a v2.3.1 2025-07-29 14:26:59 +03:00
Artturin
a209c1323d Move mangen above cache
It's run in the build so there can be permission issues with cache
creation resulting in a warning.
2025-07-29 14:25:31 +03:00
Artturin
d891aa321f Fix fish comma-command-not-found 2025-07-29 14:24:04 +03:00
Artturin
c11a8b4944 Include cache path in error 2025-07-28 21:10:49 +03:00
Artturin
ad0b489b9e Use error macro in a few places 2025-07-28 21:05:37 +03:00
Ross Smyth
393f20bc88
Allow user to generate the man page (#108) 2025-07-26 18:11:41 +03:00
Artturin
dcf5563721 v2.3.0 2025-07-24 21:16:42 +03:00
Ross Smyth
9974dd514c
Add Fish and Nushell command-not-found handlers (#104) 2025-07-23 15:15:10 +03:00
Artturin
d97c12ab9e
Merge pull request #107 from RossSmyth/pathClean 2025-07-23 15:12:19 +03:00
Ross Smyth
8ef7130d46 Replace wrapProgram with substituteInPlace so PATH isn't polluted
Previously, when a command was executed with `, blah`,
it would inherit the $PATH var from comma. This meant
that there was some slight pollution, primarily since
it would be the `nix`, `fzy`, and `nix-index` bin paths
on PATH. Specifically they would be prefixed, so they would
override any other entries. This could lead to confusing
behavior if comma is built from a flake without overriding
the nixpkgs input.

This changes it so that the paths are directly embedded
in the binary, so no PATH pollution occurs.
2025-07-22 16:41:48 -04:00
Artturin
4bc672b803 v2.2.0 2025-07-19 15:02:36 +03:00
Artturin
582fa11586 cargo clippy --fix 2025-07-19 15:01:29 +03:00
Artturin
ca003ff5e6 flake.lock: Update
Flake lock file updates:

• Updated input 'naersk':
    'github:nix-community/naersk/0473954e399eec0081ee816f3430c17d1f7e5a42?narHash=sha256-QNo234SxSB2lLavaT2d%2Bg%2BZ2WB7o7w29vYkM6zfRLi4%3D' (2025-07-07)
  → 'github:nix-community/naersk/0e72363d0938b0208d6c646d10649164c43f4d64?narHash=sha256-uldUBFkZe/E7qbvxa3mH1ItrWZyT6w1dBKJQF/3ZSsc%3D' (2025-07-16)
• Added input 'naersk/fenix':
    'github:nix-community/fenix/bf0d6f70f4c9a9cf8845f992105652173f4b617f?narHash=sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU%3D' (2025-07-14)
• Added input 'naersk/fenix/nixpkgs':
    follows 'naersk/nixpkgs'
• Added input 'naersk/fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/591e3b7624be97e4443ea7b5542c191311aa141d?narHash=sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu%2BQEnJn2Sfg%3D' (2025-07-13)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9b008d60392981ad674e04016d25619281550a9d?narHash=sha256-mgFxAPLWw0Kq%2BC8P3dRrZrOYEQXOtKuYVlo9xvPntt8%3D' (2025-07-08)
  → 'github:NixOS/nixpkgs/8131c0ea9df6293a247be743a387ff725e464db7?narHash=sha256-pGvcN/yiJ4e3/hgvTwkyZvl6c3HuLLCY/hjEzDuQB54%3D' (2025-07-18)
2025-07-19 14:59:03 +03:00
Artturin
f90146b546
Merge pull request #103 from culxttes/nix-locate-top-level
feat: remove "top-level" argument of "nix-locate"
2025-07-19 13:48:57 +03:00
Artturin
4d9c93a0c4
Merge pull request #85 from Pandapip1/command-not-found-handle 2025-07-18 12:57:43 +03:00
Artturin
8767be1ae3 Rename comma-command-not-found.sh 2025-07-18 12:53:19 +03:00
Culottes
2dab620c7a
feat: remove "top-level" argument of "nix-locate" 2025-07-18 08:48:21 +02:00
Artturin
5f5499610e Add --ask for use in command-not-found 2025-07-15 20:50:11 +03:00
Gavin John
c89af24f00 Add command-not-found handler 2025-07-15 19:02:05 +03:00
Artturin
27ce74dda2 v2.1.0 2025-07-14 01:57:28 +03:00
Artturin
7c120ad582 Make comma overrideable 2025-07-13 21:03:02 +03:00
Artturin
1f6804946d Add formatter attr 2025-07-13 20:28:06 +03:00
Artturin
8c5b3898d1 Format 2025-07-13 20:27:22 +03:00
Artturin
4d64424458
Merge pull request #102 from thiagokokada/cache-settings 2025-07-13 20:20:42 +03:00
Thiago Kenji Okada
fd8adc78e8 Update README.md with cache instructions 2025-07-12 13:01:11 +01:00
Thiago Kenji Okada
febd4fc25d Add --cache-level flag
This is u8 flag that accepts the following options:
- 0: completely disables caching
- 1: only cache choices
- 2: also caches paths

Setting the default to 2 to keep the current behavior.

Fixes: #90.
2025-07-12 12:51:39 +01:00
Thiago Kenji Okada
d98bc3269f Print path for debug in Cache::new() 2025-07-12 12:37:49 +01:00
Thiago Kenji Okada
61f57140a8 Document missing flags 2025-07-12 12:10:20 +01:00
Artturin
98736ccbdf Remove missed --update reference 2025-07-12 00:52:14 +03:00
Artturin
867a9f37f4 cargo fmt 2025-07-11 16:52:21 +03:00
Artturin
242cdfcea8 Remove deprecated feature --update 2025-07-11 16:52:14 +03:00
Artturin
8ca7dabea8 Add quotes release.sh 2025-07-11 16:16:00 +03:00
Artturin
9551b0d484 v2.0.0 2025-07-11 13:53:35 +03:00
Artturin
3d3dc5d885 "Fix" unused return value of std::os::unix::process::CommandExt::exec that must be used 2025-07-11 13:41:15 +03:00