Commit graph

1061 commits

Author SHA1 Message Date
alexis-opolka
68d5ea6538 Merge branch 'tzhouhc-master' into experimental 2026-03-12 14:53:08 +01:00
alexis-opolka
faf360fb40 Merge branch 'master' of github.com:tzhouhc/navi into tzhouhc-master 2026-03-12 13:57:43 +01:00
alexis-opolka
5f4abc7c73 feat: Fixes small issues and added the sync command
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2026-03-12 13:48:27 +01:00
alexis-opolka
01f374ca53 chore: run cargo fmt
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2026-03-09 20:55:06 +01:00
alexis-opolka
5b80552a58 feat: Refactor the add command to use the newly added rust git2 crate
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2026-03-09 20:52:33 +01:00
alexis-opolka
c1dc363e49 feat: Fix navi repo list command behaviour
Added the use of a Repository instance as argument to the git::get_remote function

Started migrating the entire git module to use the git2 rust crate

Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2026-03-01 12:12:25 +01:00
Ting Zhou
f30475a990 feat: Add -a/--all for repo commands to skip confirmation
Using `-a` will skip the "Do you want to import all files from this
repo?" check and assume yes, since I found out that the `yes` tool
doesn't work for this somehow?

Also aliased to `-y/--yes`.
2025-12-19 03:23:41 -05:00
alexis-opolka
e16c2b6b4b UNFINISHED work
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2025-10-14 07:39:15 +02:00
alexis-opolka
c0453584b1 feat: Added the start of the handling of the git remote update process
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2025-10-03 20:05:31 +02:00
alexis-opolka
27d2456dab Cleaned the messy code in repo/add.rs and used println! instead of eprintln! within repo/list.rs before exiting.
Signed-off-by: alexis-opolka <contact@alexis-opolka.dev>
2025-09-11 19:31:18 +02:00
Alexis Opolka
b01291e040
Merge pull request #990 from astr0n0mer/master
docs: fixes broken links
2025-08-18 19:12:59 +02:00
astr0n0mer
820a7b9b31
docs: fixes broken links 2025-08-18 16:18:33 +05:30
Alexis Opolka
1410ade80f
Merge pull request #988 from denisidoro/master
Update the experimental branch
2025-07-26 13:28:38 +02:00
Alexis Opolka
c6da2d934d
Merge pull request #987 from stacksparrow4/master
Removed head -n 1 from tmux widget
2025-06-30 04:15:07 +02:00
Daniel Cooper
403f25bc22 Removed head -n 1 from tmux widget 2025-06-30 11:53:51 +10:00
Alexis Opolka
8f236e9fcf
Merge pull request #986 from sebastiaanspeck/fix/toc
docs: Remove dead links from ToC
2025-06-29 22:56:07 +02:00
Sebastiaan Speck
2970b97e6c README: remove dead links from ToC 2025-06-28 02:50:29 +00:00
Alexis Opolka
c55e6cdef6
Merge pull request #985 from alexismrosales-encora/fix/docs-configuration-typo
docs: Fix typo in configuration example
2025-06-26 23:26:16 +02:00
alexismrosales
04c99d0db7 docs: Fix typo in configuration example 2025-06-26 14:52:29 -06:00
Alexis Opolka
9dac4fa2ef
Update CODEOWNERS 2025-06-23 11:47:09 +02:00
Alexis Opolka
6f009dbc4e
Update CODEOWNERS 2025-06-23 11:46:57 +02:00
Alexis Opolka
822b3ea3ba
Merge pull request #983 from soar/feature/use-cargo-install-locked
feat: Add `--locked` to `cargo install` in release script
2025-06-20 16:38:56 +02:00
Aleksey @soar Smyrnov
fdbd607132
feat: Add --locked to cargo install in release script 2025-06-17 02:10:39 -04:00
Alexis Opolka
085ee0135b
Merge pull request #982 from lamchau/fish-repaint
fix: prevent prompt corruption in fish v4
2025-06-10 11:11:21 +02:00
Alexis Opolka
d62f8c7e04
Update navi.plugin.fish 2025-06-10 11:09:20 +02:00
Lam Chau
a7efad2740 docs: add references to fish 2025-06-07 14:36:02 -07:00
Lam Chau
fcbd6c3350 style: use long options for self-documentation 2025-06-06 19:49:35 -07:00
Lam Chau
0076018ada fix: add version check for fish v4+ 2025-06-06 13:24:02 -07:00
Lam Chau
023e52d1fb fix: prevent prompt corruption in fish v4
fish v4 introduced new multiline prompt rendering behavior that breaks
when interactive commands like `navi` are injected via keybindings. this
resulted in partial prefix symbols (e.g. from a prompt's newline
component) being left on screen and improperly rendering the expanded
command (e.g. `gzgzip` instead of `gzip`).

this forces a full redraw so it's cosmetically identical to running
`navi` (as a command without insertion)
2025-06-06 02:21:54 -07:00
alexis-opolka
dfcb2e2173 Added some tests
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-06-01 21:23:01 +02:00
alexis-opolka
41e6987319 Made the all_git_files() function os-independent
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-06-01 21:05:10 +02:00
alexis-opolka
ce5645d853 Fixed issue with duplicate paths
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-06-01 20:52:18 +02:00
alexis-opolka
52d97e5533 Added verbosity to debug
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-06-01 20:36:22 +02:00
alexis-opolka
f6d0bfbc46 Tries to fix the last issue of repo sync
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-22 23:05:35 +02:00
alexis-opolka
940bcffcc0 Fixes most issues with sync command
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-19 10:37:08 +02:00
alexis-opolka
ad7f90ecb8 Fixes the behaviour of the sync subcommand
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-18 21:51:46 +02:00
alexis-opolka
8bb4f317a8 Fixes the added --branch parameter of repo add
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-18 12:40:31 +02:00
alexis-opolka
85ed5e8b05 Fixes some small issues
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-17 13:59:05 +02:00
alexis-opolka
f3248bb77a Mainly refactored the help message into a re-usable constant
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-13 19:54:15 +02:00
alexis-opolka
652cf8d90b [INCOMPLETE] - Save changes
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-11 20:53:01 +02:00
alexis-opolka
7adfae055a Fixes an issue where all_cheat_files() also returned a directory if it ended in .cheat or .cheat.md
Added some docstrings on all_cheat_files() and all_git_files()

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-11 18:46:13 +02:00
alexis-opolka
79ab8525f2 Added the use of the file protocol to have a local hyperlink when confronted with a non HTTPS URI.
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-11 18:18:16 +02:00
alexis-opolka
122f06ed9c Added some docstrings on the new local_cheatsheet_repositories() function
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-11 18:10:10 +02:00
John Nguyen
e657f4b6b5
Update documentation links (#980)
* Fix links

Fix link

* Remove empty file

This has been refactored to docs/configurations/

* Update README.md

Made the links point directly at the files

---------

Co-authored-by: Alexis Opolka <53085471+alexis-opolka@users.noreply.github.com>
Co-authored-by: John Nguyen <ipwnponies@gmail.com>
2025-05-08 09:44:36 +02:00
alexis-opolka
0a87eaf100 Added a small note for later on git's behaviour
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-06 09:10:12 +02:00
alexis-opolka
2d9d04c6a3 Merge branch 'alexis-opolka-new-docs' 2025-05-04 12:37:30 +02:00
alexis-opolka
445f9be247 Merge branch 'new-docs' of github.com:alexis-opolka/navi into alexis-opolka-new-docs 2025-05-04 12:37:13 +02:00
alexis-opolka
48fd4db08d Did a bit of refactoring - Deleted the png file inside the repository
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-04 11:00:43 +02:00
Alexis Opolka
75eb558198
Feat: Add a flag to bypass confirmations + Add a partial implementation of repo sync (#978)
* Added a start of a functional copy of the .git folder

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Add the sync file

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Bump version from beta1 to beta2 + modified sync subcommand entry

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Made minor modifications

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Update crossterm to last release

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Introducing a new internal module - terminal

This module should be able to handle specific tasks with the terminal such as hyperlinks or others not handled by crates

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Add the repo list subcommand

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* cargo fmt + minor improvements

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Adds a basic sync function + cargo fmt + cargo clippy compliance + minor refactors

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Add an option for confirmation

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

* Updated the status of this branch to a stable state

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>

---------

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-05-03 20:42:44 +02:00
alexis-opolka
c409a0f149 Small update
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-04-30 22:15:00 +02:00