소스 검색

Fixes environmental variables not being passed on preview-tui (#644)

master
Mario GitHub 4 년 전
부모
커밋
5a6078967b
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      plugins/preview-tui

+ 5
- 1
plugins/preview-tui 파일 보기

@@ -195,8 +195,12 @@ elif [ "$TERMINAL" = "kitty" ]; then
kitty @ goto-layout splits >/dev/null

# Trying to use kitty's integrated window management as the split window.
# All environmental variables that will be used in the new window must
# be explicitly passed.
kitty @ launch --no-response --title "nnn preview" --keep-focus \
--cwd "$PWD" --env "NNN_FIFO=$NNN_FIFO" --env "PREVIEW_MODE=1" \
--cwd "$PWD" --env "PATH=$PATH" --env "NNN_FIFO=$NNN_FIFO" \
--env "PREVIEW_MODE=1" --env "PAGER=$PAGER" \
--env "USE_SCOPE=$USE_SCOPE" --env "SPLIT=$SPLIT" \
--location "${SPLIT}split" "$0" "$1" >/dev/null

# Restoring the previous layout.


불러오는 중...
취소
저장