Commit graph

52 commits

Author SHA1 Message Date
Daniel Berg 84cf690881
Fix issue with unsupported bind-key -N option
As pointed out by @k-kuroguro, the `-K` option isn't supported before
tmux 3.1, so I modified the supported.sh script to handle conditionally
setting this option on init

Refs:
1905afb3d8/CHANGES (L806C1-L811C28)
https://github.com/roosta/tmux-fuzzback/issues/24
2025-05-01 22:22:03 +02:00
mohamed 8bd580bcbf remove unnecessary nowrap 2023-12-15 10:36:32 -07:00
Daniel Berg f272cdecb7
Remove no-sort option from finder 2023-10-05 14:57:04 +02:00
Daniel Berg db10ff242c
Fix default value after rename 2023-09-27 14:38:08 +02:00
Daniel Berg 847cb27ae1
Rename opt, fix popup
- Rename option to `hide-preview`, makes more sense in context.
- I forgot to update to popup launcher fn in preview commit, this fixes
  that
2023-09-27 14:38:08 +02:00
Daniel Berg bd53c4fda9
Fix issue re-enabling preview
Previously the option would disable preview with no avenue to re-enable
it, no its only hidden, and can be toggled back on with keybinding
2023-09-27 14:38:08 +02:00
Daniel Berg 60cf2e0ba5
Add preview toggle 2023-09-27 14:38:08 +02:00
Jakub Gros 068dc69d18 Make preview.sh work correctly with other shells
Due to missing shebang in the preview.sh file, the script failed if user
 used different shell than bash (for example zsh).
2022-12-25 21:06:23 +00:00
Hassaan Khan bfd9cf0ef1
Add fzf-colors option (#14)
* Adding fzf-colors option

* Adding fzf-colors option

Co-authored-by: Hassaan Khan <hqkhan@amazon.com>
2022-11-21 19:07:06 +01:00
Daniel Berg 73e3e2578c
Fix preview using skim 2022-11-15 18:35:57 +01:00
Daniel Berg 2a230b47ae
Fix renamed var after main merge 2022-11-15 18:35:31 +01:00
Daniel Berg 28dd04b744
Merge branch 'main' into feat/skim 2022-11-15 18:25:04 +01:00
Daniel Berg c701a76635
Merge pull request #11 from roosta/feat/preview
feat: preview
2022-11-15 18:02:10 +01:00
Daniel Berg 1442696f1a
Fix #10 use default split arg
Just so happens to be -d 50%, so we avoid the issue of passing
percentages.
2022-11-15 17:49:57 +01:00
Daniel Berg 20fe8cba45
Merge branch 'main' into feat/preview 2022-11-14 17:33:02 +01:00
Daniel Berg c7cf95cae4
Fix #9 issue with split arg
I think this never worked correctly, but tmux silently accepted it until
this version, fzf-tmux will not run correctly when passing a string, or
it did before, not quite sure, but this resolves the issue on all
versions
2022-11-14 17:23:20 +01:00
Daniel Berg 8fd685a899
Prevent preview from wrapping
Ref #6
Set option preview-window=nowrap in fzf commands.
Sort options.
2022-01-13 15:53:11 +01:00
Daniel Berg 73583d3d69
feat: support for skim
Breaking changes!

- Variable fuzzback-fzf-bind has been renamed to fuzzback-finder-bind
- Variable fuzzback-fzf-layout has been renamed to
  fuzzback-finder-layout
2022-01-04 15:54:12 +01:00
Daniel Berg bb5ecaecd9
Merge branch 'main' into feat/preview 2022-01-03 17:38:04 +01:00
Daniel Berg a0d2c3040e
Fix issue previewing less than window height
If there is no scrollback, namely that you have only populated the
window with output, the preview failed due to a lot of trailing
newlines, which messed up the linum calc
2022-01-03 17:32:29 +01:00
Daniel Berg 3931d36040
Highlight active line 2021-12-21 15:20:08 +01:00
Daniel Berg 971414752d
Add initial implementation of preview 2021-12-21 15:13:50 +01:00
Kevin Traver a85e55f7a3 Add layout option in fzf_split_cmd 2021-12-17 00:54:03 -07:00
Kevin Traver 84a1ac7cfa Add fzf layout option
Add tmux variable to set fzf layout
2021-12-17 00:42:32 -07:00
Daniel Berg 34439fad33
Fix column movement issue on macos 2021-07-24 19:37:21 +02:00
Daniel Berg cfb76b9a0b
Move tac/tail logic to function to avoid eval 2021-07-24 18:27:37 +02:00
Daniel Berg 5a87af7c08
Fix issue on macos missinng tac command 2021-07-24 18:21:14 +02:00
Daniel Berg abc734b07c
Indent 2021-07-24 17:42:33 +02:00
Daniel Berg dff11ecd58
Add fuzzback-fzf-bind option 2021-07-24 17:42:17 +02:00
Daniel Berg f1ad687ad7
Add popup size option 2021-07-22 19:45:49 +02:00
Daniel Berg 1208624319
Fix fzf options testing issue 2021-07-22 19:22:04 +02:00
Daniel Berg 4e76ae65a1
Fix missing readarray command issue
resolve #1
2021-07-22 18:05:42 +02:00
Daniel Berg d7d74dcdeb
Add optional tmux popup 2021-07-22 17:48:24 +02:00
Daniel Berg df0185d934
Move tmux-get to helpers 2021-07-22 17:07:44 +02:00
Daniel Berg 39f1d34b74
Fix top padding issue when in fullscreen program 2021-07-21 20:33:01 +02:00
Daniel Berg 9f850d143b
Reset ansi only on top of file
Prevents unneeded sed calls on a potentially large head file
2021-07-21 19:09:36 +02:00
Daniel Berg bf9002c131
Formatting 2021-07-21 17:52:10 +02:00
Daniel Berg 0c843427d0
Increase split pane height
Seems to fix the vim issue, needs more testing
2021-07-17 15:07:02 +02:00
Daniel Berg a6283d4a4b
Reset all ansi escapes in head, tail
Issue with resetting colors after the file has been reversed
2021-07-17 15:06:58 +02:00
Daniel Berg cafa381f1d
doc: move comment 2021-07-17 11:50:13 +02:00
Daniel Berg 2f785d1b01
fix: issue with empty tail file
There was an issue where fuzzback would display trailing newlines when
searching in terminal. This fix ensures that it will only populate tail
when there is actual text in tail (vim)
2021-03-11 15:44:33 +01:00
Daniel Berg 16d924cb2f
style: replace tabs with spaces 2021-03-11 15:43:53 +01:00
Daniel Berg ac3da5975d
refactor: rename window_height 2021-03-09 12:26:27 +01:00
Daniel Berg 78104f4738
doc: update comment 2021-03-08 14:25:42 +01:00
Daniel Berg 99e9082b49
fix: re-enable ansi parsing 2021-03-08 14:25:32 +01:00
Daniel Berg 7948ba421a
fix: movement when in a window (vim, ssh etc)
This is a combination of 21 commits:

- WIP
- WIP: use filenames, refactor entire main fn
- WIP
- WIP: re-enable horizontal movement
- WIP: fix upward movement
   Still haven't fixed downward movement
- WIP: use cursor_y instead of copy_cursor_y
- WIP: fix issue where $match would be unbound
- WIP: add a new col to each line to signify file
- WIP: concat files and refactor goto
- WIP: format local block
- WIP: adjust test to check for num above 1
- WIP: Fix downward movement
   When not starting from copy-mode
- WIP: fix column movement when doing downward
- WIP: Fix issue with starting fuzzback in copymode
- WIP: Remove print statements
- WIP: remove unused function
- WIP: move column movement to separate function
- WIP: remove debug out
- WIP: delete old files
- WIP: add input fixture
- WIP: add comments
2021-03-08 14:06:07 +01:00
Daniel Berg 5c65f40c5d
fix: supported version is supposed to be 2.4 2021-02-24 19:13:14 +01:00
Daniel Berg a771462a2c
style: reword unsupported message 2021-02-24 18:58:25 +01:00
Daniel Berg f77d3c9d3d
refactor: rename and update naming conversion
Fix linting errors as well
2021-02-24 18:51:54 +01:00
Daniel Berg 65cd4ecae0
feat: check for correct tmux version 2021-02-24 18:29:10 +01:00