]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Feature update less desc (#478)
authorShane <brisk.plan8936@shenyingnan.com>
Sat, 7 Jun 2025 11:40:57 +0000 (19:40 +0800)
committerGitHub <noreply@github.com>
Sat, 7 Jun 2025 11:40:57 +0000 (13:40 +0200)
* Add version desc and news link

* Remove wrap

* Bolder less

* Add more desc

* Remove link

* Bolder

* Add more desc

programs/less.json

index 58f3805183784cc9865ed30c64f8edb442417590..2eedd46f6986add1ca25602b63af75bf13fc9ead 100644 (file)
@@ -3,12 +3,12 @@
         {
             "path": "$HOME/.lesshst",
             "movable": true,
         {
             "path": "$HOME/.lesshst",
             "movable": true,
-            "help": "Supported by default.\n\nYou can move the file to _$XDG_STATE_HOME/lesshst_.\n"
+            "help": "Supported by default since **less** version 598. You can check your version with the following command:\n\n```bash\nless --version\n```\n\nIf your version is **not lower** than that, you can move the file to _$XDG_STATE_HOME/lesshst_.\n\n\nIf your version is **lower** than that, you need to export the following environment variables first:\n\n```bash\nexport LESSHISTFILE=\"${XDG_STATE_HOME}\"/lesshst\n```\n\nThen move the file.\n"
         },
         {
             "path": "$HOME/.lesskey",
             "movable": true,
         },
         {
             "path": "$HOME/.lesskey",
             "movable": true,
-            "help": "Supported by default.\n\nYou can move the file to _$XDG_CONFIG_HOME/lesskey_.\n"
+            "help": "Supported by default since **less** version 590. You can check your version with the following command:\n\n```bash\nless --version\n```\n\nIf your version is **not lower** than that, you can move the file to _$XDG_CONFIG_HOME/lesskey_.\n\n\nIf your version is **lower** than that, you need to export the following environment variables first:\n\n```bash\nexport LESSKEYIN=\"${XDG_CONFIG_HOME}\"/lesskey\n```\n\nThen move the file.\n"
         }
     ],
     "name": "less"
         }
     ],
     "name": "less"