Commit graph

44 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
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 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 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 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 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 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 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
Daniel Berg dd588f77a0
Fix issue with cut delimiter
Issue with older cut version that doesn't support -d$'\n' delimiter,
replace with readarray
2021-02-24 15:37:54 +01:00
Daniel Berg 25c63870a7
Add testing
Add tmux-test as a submodule

Run tmux test setup script

Fix example test

Move scripts to scripts subfolder

WIP

Remove submodule

WIP

Change dist to xenial

Ignore log files

Remove sourcing bashrc

Use xenial as dist

Attempt to install fzf under vagrant user

Add fzf to path

WIP

Fix expect script

Comments

Move provisions to separate folder

Move fixtures to separate folder

Set TERM to prevent tmux errors

WIP

Enable checking pos properly

WIP

Ensure display-message works

Test fuzzback

Add checker to assert_pos

WIP: add more assertions

WIP: fix running multiple assertions

Change TERM to tmux-256color

Fix issue with fuzzback position

Move quit call to associated function

Assert scroll position

Dont export TERM

Include tmux-test in license

Update top level comment

Mention where its copied from

Update header comment

Fix issue with fuzz that caused return to not work

Make create_output take n argument

Fix top of pane tests

Rearrange copy-mode assertion

Caused issues with cursor_pos when it was before that assertion

Set mode-keys to vi

Add middle search tests

Update puts comments, reorder some assertions

Change tests failed message

Fix issue with checking mode

Simplify display_text

Remove unused functions

Fix header lengths

Cleanup, refactor

Rename _private functions, no distinction

Remove empty git modules file

Fix issue with window height passthrough
2021-02-22 16:41:34 +01:00
Renamed from fuzzback.sh (Browse further)