Commit graph

367 commits

Author SHA1 Message Date
KITAGAWA Yasutaka
57830a0252
cargo fmt 2025-03-18 07:33:42 +09:00
Alexis Opolka
03618b55fd
Merge branch 'master' into pwsh-plugin 2025-03-14 23:59:58 +01:00
alexis-opolka
89e71794c6 Update navi pwsh plugin
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2025-03-14 23:41:47 +01:00
Denis Isidoro
436278cc8e
Merge pull request #944 from kit494way/fix-ci-lint-error
Fix CI lint errors
2025-03-10 15:56:56 -03:00
Alexis Opolka
cc1187e259
Update shell.rs
Updated the link to the module.
2025-03-07 19:41:21 +01:00
Alexis Opolka
684e450ef5
Update shell.rs
It should remove the need to put a "-" in the middle of the name. It's a bit impractical.
2025-03-07 19:40:11 +01:00
Erik Gabriel Carrillo
a72ce5937c Allow cheatsheet items with same descriptions
Prior to the refactor performed in
https://github.com/denisidoro/navi/pull/760, cheatsheet items could have
the same tags and the same description, but a different snippet, and
they would all be listed in the finder.

After the refactor, this behavior has changed and such items will now be
treated as non-unique.

There appears to be no requirement for item descriptions to
be distinct, so this patch restores the earlier behavior.

Fixes: https://github.com/denisidoro/navi/issues/951

Signed-off-by: Erik Gabriel Carrillo <ecarrillo@alumni.utexas.net>
2025-03-03 19:54:48 -06:00
KITAGAWA Yasutaka
2d8f5e9c79
Fix CI lint errors 2025-02-23 07:51:26 +09:00
KITAGAWA Yasutaka
dc59652642
Allow delimiter variable option to be set from config.yaml 2025-02-09 09:27:36 +09:00
Denis Isidoro
5515367dc8
2.24.0 bump (#935) 2025-01-29 20:18:21 -03:00
Paolo Barbolini
50444cc6de fix: cargo fmt 2025-01-18 12:05:32 +01:00
Denis Isidoro
4200050d87
Merge branch 'master' into ancient-dependencies 2025-01-18 07:36:29 -03:00
Denis Isidoro
10ddffbe72
Merge branch 'master' into master 2025-01-18 07:34:18 -03:00
Paolo Barbolini
f9070c950b Upgrade dependencies 2025-01-11 10:46:32 +01:00
ryo246912
a2c5598a01
fix: cargo fmt 2025-01-10 15:21:51 +09:00
alexis-opolka
4534211638 Update powershell preview
It seems to be working without much issues, did not have much to test though

Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2024-12-08 18:44:18 +01:00
alexis-opolka
0c6684a921 Tried to update to powershell
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2024-12-08 13:37:52 +01:00
alexis-opolka
31b831317a Update Navi's code
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
2024-12-07 17:24:18 +01:00
asemmar
c59af6548e chore(tldr): Make it more obvious that tealdeer is the recommended client
https://github.com/tldr-pages/tldr mentions tlrc as the official
rust client, but navi supports tealdeer instead since
c3d75383f8, so stop mentioning
that link and instead point the user directly to tealdeer.

Fix: https://github.com/denisidoro/navi/issues/902
2024-09-28 02:12:11 +02:00
Ben Yang
071969ada0 mvp. 2024-06-24 18:50:29 +08:00
Anatolij Vasilev
266368c541
fixed cargo clippy warnings 2024-05-07 08:50:44 +02:00
Anatolij Vasilev
d0d56223ce
fixed linter 2024-05-06 13:32:50 +02:00
Anatolij Vasilev
4c65d78027
removed added blank line 2024-03-25 16:11:38 +01:00
Anatolij Vasilev
5f3d0a4445
removed unused "use" 2024-03-25 16:07:15 +01:00
Anatolij Vasilev
019540a4f5
#447: added error message for incompatible fzf version 2024-03-25 15:53:21 +01:00
Dylan Premo
c3d75383f8
Add config option to support tealdeer 2024-01-18 15:48:14 -08:00
zjp
ea95dfec48 Fix preview: handle Windows NT UNC paths (\\?\C:\foo) 2023-05-13 22:44:13 +08:00
zjp
b9283f6718 debug log 2023-05-13 22:41:02 +08:00
zjp
25792db877 config_file_example: shell command should be cmd.exe on Windows
and add shell command debug in logging
2023-05-13 15:51:39 +08:00
zjp
eaadec172c If config path doesn't exist, navi won't log. 2023-05-13 14:14:36 +08:00
zjp
0fe4bc2447 eprintln init_logger failure (may need redir if it's flushed away)
and add a description on logging
2023-05-13 13:47:21 +08:00
zjp
8a2bf7d1eb Fix multiple paths: define the platform-specific join separator 2023-05-13 11:27:27 +08:00
zjp
2755d51b38 mv navi.log under config dir; debug folders on Windows
2023-05-12T15:51:54.280707Z DEBUG navi::filesystem: read cheat files in `"C"`: []
2023-05-12T15:51:54.281083Z DEBUG navi::filesystem: read cheat files in `"\\Users\\Administrator\\AppData\\Roaming\\navi\\cheats"`: []
2023-05-13 00:21:31 +08:00
zjp
818d5cdc0e rm env_logger; use tracing instead 2023-05-12 19:13:50 +08:00
zjp
d1699dfaf1 introduce use env_logger
related to https://github.com/denisidoro/navi/issues/576

For the following config

cheats:
  paths:
    - C:\\Users\\Administrator\\AppData\\Roaming\\navi\\cheat
    - C:\\Users\\Administrator\\AppData\\Roaming\\navi\\cheat

navi now gets incorrect paths on Windows, since the seperator `:` for
path join is a valid component.

[2023-05-12T08:58:26Z DEBUG navi::commands::core] Filesystem(
        Some(
            "C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat:C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat",
        ),
    )
[2023-05-12T08:58:28Z DEBUG navi::filesystem] filesystem::Fetcher = Fetcher {
        path: Some(
            "C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat:C:\\\\Users\\\\Administrator\\\\AppData\\\\Roaming\\\\navi\\\\cheat",
        ),
        files: RefCell {
            value: [],
        },
    }
2023-05-12 17:01:49 +08:00
Utkarsh Gupta
21f93c84b1
Use XDG conventions on macOS too 2023-04-24 19:41:06 +05:30
Denis Isidoro
f8192a468e
Fix publish script (#825) 2023-04-09 10:08:42 -03:00
Denis Isidoro
e3920552ca
Add --prevent-interpolation flag (#824) 2023-04-08 21:53:48 -03:00
Denis Isidoro
4f63f30ed7
Fix padding (#822) 2023-04-08 21:15:55 -03:00
Denis Isidoro
f6414551bb
Prevent variable selection content from being limited to 3 columns (#821) 2023-04-08 21:13:27 -03:00
Denis Isidoro
8963749e6a
Correctly calculate character widths (#820) 2023-04-08 20:53:25 -03:00
Denis Isidoro
b56d70a6ca
Use dns_common library (#818) 2023-04-08 19:38:50 -03:00
Denis Isidoro
8cf9c96e54
Update dependencies (#817) 2023-04-08 19:28:42 -03:00
TD-Sky
f0f8e83f06 Upgrade clap to 4.2.1 2023-04-04 17:49:16 +08:00
Denis Isidoro
ecaeacf1d8
Merge pull request #807 from vashirov/i806
Handle multiline snippets better
2022-12-21 08:06:29 -03:00
Viktor Ashirov
4b07ddfe1a Handle multiline snippets better
Add support for code blocks using markdown syntax. Lines that are
part of the snippet and match the variables regex won't be interpeted as
a variable.

Additionally, add `.cheat.md` as a file extension for cheats so that it
can be rendered on GitHub with proper code formatting and syntax
highlighting.

Fixes #806
2022-12-19 20:35:54 +01:00
Denis Isidoro
13fe757a8a
Merge pull request #776 from trantor/preview_fix
Fix preview map "leaking" with multiple variables
2022-11-15 17:26:00 -03:00
Kian-Meng Ang
dee8f3698f Fix typos
Found via `codespell -L crate,ser`
2022-09-08 20:53:54 +08:00
Fulvio Scapin
41aa47e280 Fix preview map "leaking" with multiple variables
With multiple variables in the preview, each with
different «--map» options, there is an application
of the map code for the current variable to the
preview of the other variables as well.
This code fixes that.
2022-08-21 21:54:42 +02:00
Denis Isidoro
9d862344e6
Minor code base improvements (#767) 2022-07-29 19:25:36 -03:00