Skip to content

Commit 697099d

Browse files
authored
Merge pull request #909 from mikesmithgh/fix-man-pager
fix(man): Use cat as man pager
2 parents 7f0a22b + 55bdde7 commit 697099d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

server/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Bash Language Server
22

3+
## 4.10.3
4+
5+
- Use cat as man pager https://github.com/bash-lsp/bash-language-server/pull/909
6+
7+
## 4.10.2
8+
9+
- Bump semver development dependency causing false positive distributions security warnings https://github.com/bash-lsp/bash-language-server/pull/905
10+
11+
312
## 4.10.1
413

514
- Handle tree-sitter-bash parse errors gracefully

server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A language server for Bash",
44
"author": "Mads Hartmann",
55
"license": "MIT",
6-
"version": "4.10.2",
6+
"version": "4.10.3",
77
"main": "./out/server.js",
88
"typings": "./out/server.d.ts",
99
"bin": {

server/src/util/sh.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const WORDS_WITHOUT_DOCUMENTATION = new Set([
5353
])
5454

5555
/**
56-
* Get documentation for the given word by usingZZ help and man.
56+
* Get documentation for the given word by using help and man.
5757
*/
5858
export async function getShellDocumentationWithoutCache({
5959
word,
@@ -73,7 +73,7 @@ export async function getShellDocumentationWithoutCache({
7373
// We have experimented with setting MANWIDTH to different values for reformatting.
7474
// The default line width of the terminal works fine for hover, but could be better
7575
// for completions.
76-
{ type: 'man', command: `man ${word} | col -bx` },
76+
{ type: 'man', command: `man -P cat ${word} | col -bx` },
7777
]
7878

7979
for (const { type, command } of DOCUMENTATION_COMMANDS) {

0 commit comments

Comments
 (0)