Commit Graph

72 Commits (20230117636c9dfa3ed6f6428c5bc4c51b02f60a)

Author SHA1 Message Date
Zhizhen He 2a54e3d770
Fix typos in the source code (#3048) 2 years ago
Junegunn Choi 19f9bbca0d
Allow specifying fzf options in $FZF_TMUX_OPTS without '--' 2 years ago
Yang Tian d826f9e72f
[fzf-tmux] Use fzf border instead of tmux popup border (#2908)
Co-authored-by: Yang Tian <yang.tian@getcruise.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi 6a6130615d
[fzf-tmux] Remove code for tmux 3.2 beta compatibility 2 years ago
a1346054 ab247a1309 use consistent style for bash [[ ... ]] 3 years ago
solarizedalias 489b16efce
[fzf-tmux] Adapt to tmux latest changes (#2379) 3 years ago
Junegunn Choi fd8858f8c9
[fzf-tmux] Disable CTRL-Z 3 years ago
Junegunn Choi 246b9f3130
Simplify fzf-tmux script
# Should properly escape arguments
    FZF_DEFAULT_OPTS='--prompt "\$a`b\"c"' fzf-tmux --header $'$a\nb"c`d'
4 years ago
karasu 01cf01e084
[fzf-tmux] Fix zoomed pane handling in popup mode (#2054)
When called with popup options, do not move to temp window.
4 years ago
Junegunn Choi 15e2952a2b
[fzf-tmux] Allow positional flags
Since we don't know in advance which flags tmux will support, simply
allow a single uppercase character ([A-Z]) for now.

    fzf-tmux -xR -yS
    fzf-tmux -x R -y S

Fix #1956
4 years ago
Junegunn Choi 540bfd7a72 [fzf-tmux] Fall back to plain fzf when split failed 4 years ago
Junegunn Choi 8fbed2b13a [fzf-tmux] Use $PWD instead of #{pane_current_path}
Related: https://github.com/tmux/tmux/issues/1282
4 years ago
Junegunn Choi aa17510e0a [fzf-tmux] Set default horizontal margin 4 years ago
Junegunn Choi bf65e8cd12 [fzf-tmux] Add option to start fzf in tmux popup window
Requires latest tmux built from source (e.g. brew install tmux --HEAD)

Examples:

  # 50%/50% width and height on the center of the screen
  fzf-tmux -p

  # 80%/80%
  fzf-tmux -p80%

  # 80%/40%
  fzf-tmux -p80%,40%

  # Separate -w and -h
  fzf-tmux -w80% -h40%

  # 80%/40% at position (0, 0)
  fzf-tmux -w80% -h40% -x0 -y0

You can configure key bindings and fuzzy completion to open in tmux
popup window like so:

  FZF_TMUX_OPTS='-p 80%'
4 years ago
Junegunn Choi 888fd35689
[fzf-tmux] Avoid unnecessary recovery of window options
fzf-tmux temporarily turns off remain-on-exit and synchronize-panes
options. We don't have to try to restore the values of the options if
they were already turned off when fzf-tmux was started.
6 years ago
Heinrich Kruger ddd2a109e4 [fzf-tmux] Restore tmux window options (#1272)
Restore the original values of 'remain-on-exit' and 'synchronize-panes'
options when exiting 'fzf-tmux'.
6 years ago
Ricardo González 7f5f6efbac [fzf-tmux] Executes fzf from fzf-tmux with a process name (#1056) 7 years ago
Junegunn Choi 655dfb8328
[fzf-tmux] Remove cat command
Close #1039
7 years ago
Mike Hearn 9b9c67b768 [fzf-tmux] Add pane_height/pane_width fallback (#1037) 7 years ago
Junegunn Choi 329de8f416
[fzf-tmux] Execute trap with bash instead of the default shell
Close #1007
7 years ago
Junegunn Choi 3cf9ae04c7
[fzf-tmux] Fix cleanup of temporary files
Close #935
7 years ago
Kouki Higashikawa 7c8f7d3f20 [fzf-tmux] Close with exit code 130 when tmux pane is killed
Fix #796
7 years ago
五所和哉 bbe696e925 [fzf-tmux] Fix issue with zoomed pane on fish (#891) 7 years ago
Junegunn Choi 1ba7acf4bd
[fzf-tmux] Fix race condition when using -l/-u on zoomed panes
Using a dummy command that works as the barrier.
7 years ago
Junegunn Choi 1448d631a7
Add --height option 7 years ago
Junegunn Choi ac549a853a
[fzf-tmux] Fix bash condition
Fix #702
8 years ago
Junegunn Choi 053af9a1c8
[fzf-tmux/vim/nvim] Do not split small window
Close #699
8 years ago
Bryan Head 9baf7c4874 Make fzf target correct session in group
Fixes #643
Doesn't break #648
8 years ago
Junegunn Choi 22b089e47e
Revert "Unset TMUX before splitting window" (#648)
This reverts commit 4d4447779f.
8 years ago
Bryan Head 4d4447779f Unset TMUX before splitting window
Avoids confusing grouped sessions.
Fixes #643
8 years ago
Junegunn Choi b461a555b8
[fzf-tmux] Add --version and --help flags 8 years ago
Junegunn Choi 0f87b2d1e1
[fzf-tmux] Use double brackets
For consistency and (negligible) performance improvement
8 years ago
Junegunn Choi 0fb5b76c0d
[fzf-tmux] Fail fast if fzf excutable is not found 8 years ago
Junegunn Choi 6a431cbf49
[fzf-tmux] Escape $ in arguments
e.g. fzf-tmux -q '$PATH'

Related: #343
8 years ago
Junegunn Choi 1c86aaf342
[vim/fzf-tmux] Handle fzf project directory with spaces
Close #583
8 years ago
Junegunn Choi cfc0b18eaa
Revert "Change tmux pane title for fzf splits"
This reverts commit f074709fc9.

Close #586. /cc @akashin
8 years ago
Andrey Kashin f074709fc9 Change tmux pane title for fzf splits 8 years ago
Junegunn Choi faccc0a410
[fzf-tmux] Escape backslash in command-line arguments 8 years ago
Junegunn Choi 66f86e1870
[fzf-tmux] Fix #562 - Check $TMUX instead of $TMUX_PANE 8 years ago
Junegunn Choi c727ba1d99 [fzf-tmux] Do not split pane if the height is too small 8 years ago
Junegunn Choi 6cc9d53978 [fzf-tmux] Fix invalid redirection 8 years ago
Junegunn Choi df32c05833 [fzf-tmux] Fix issues on tmux 1.8 8 years ago
Junegunn Choi c0652adf4c [fzf-tmux] tmux 1.6 compatibility
Patch submitted by @netei. Close #524.
8 years ago
Junegunn Choi 2a2c0a0957 [fzf-tmux] Turn off remain-on-exit option
Related: https://github.com/junegunn/fzf.vim/issues/67
8 years ago
Junegunn Choi 4230b6f3c9 [fzf-tmux] Fix #466 - Make fifos writable by other users 8 years ago
Pokey Rule 32010055e1 Correct fzf-tmux tmux checking bug 9 years ago
Pokey Rule d513a210c6 Support fzf-tmux when zoomed 9 years ago
Junegunn Choi 659f49a09a [fzf-tmux] Create temp files in $TMPDIR if defined 9 years ago
Junegunn Choi 9398878048 [fzf-tmux] Exit with the same exit status as with fzf 9 years ago
Junegunn Choi 0a22142d88 [fzf-tmux] Fix #343 - Escape backticks in --query 9 years ago