Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add --tmux flag (deprecates sk-tmux, fixes #596) #603

Merged
merged 29 commits into from
Nov 27, 2024

Conversation

LoricAndre
Copy link
Contributor

@LoricAndre LoricAndre commented Nov 20, 2024

The e2e are pretty basic but they should let us check the most delicate edge cases together with the unit tests

@LoricAndre LoricAndre marked this pull request as draft November 20, 2024 17:08
@LoricAndre LoricAndre marked this pull request as ready for review November 21, 2024 18:56
@LoricAndre LoricAndre added this to the v0.12.0 milestone Nov 21, 2024
@LoricAndre LoricAndre requested a review from yazgoo November 21, 2024 19:01
@LoricAndre LoricAndre self-assigned this Nov 22, 2024
@LoricAndre LoricAndre added the tmux Anything related to sk-tmux or tmux integration label Nov 22, 2024
* Bump unicode-width from 0.1.14 to 0.2.0 (#616)

Bumps [unicode-width](https://github.com/unicode-rs/unicode-width) from 0.1.14 to 0.2.0.
- [Commits](unicode-rs/unicode-width@v0.1.14...v0.2.0)

---
updated-dependencies:
- dependency-name: unicode-width
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump nix from 0.25.1 to 0.29.0 (#614)

Bumps [nix](https://github.com/nix-rust/nix) from 0.25.1 to 0.29.0.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](nix-rust/nix@v0.25.1...v0.29.0)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump env_logger from 0.9.3 to 0.11.5 (#615)

Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.9.3 to 0.11.5.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](rust-cli/env_logger@v0.9.3...v0.11.5)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LoricAndre <[email protected]>

* chore: improve PR ci

* disable cache on fmt job

* add title check

* clean

* Create pr.yml

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: LoricAndre <[email protected]>
@LoricAndre LoricAndre changed the title feat: add --tmux flag (deprecates sk-tmux, fixes #596) wip: add --tmux flag (deprecates sk-tmux, fixes #596) Nov 26, 2024
@LoricAndre LoricAndre force-pushed the master branch 4 times, most recently from 6b0fab9 to e649d08 Compare November 26, 2024 17:01
@LoricAndre LoricAndre added this to the v0.14.0 milestone Nov 27, 2024
@LoricAndre LoricAndre changed the title wip: add --tmux flag (deprecates sk-tmux, fixes #596) feat: add --tmux flag (deprecates sk-tmux, fixes #596) Nov 27, 2024
@LoricAndre LoricAndre merged commit a2d8c3f into master Nov 27, 2024
6 checks passed
@LoricAndre LoricAndre deleted the feat/tmux-flag branch November 27, 2024 20:44
ibhagwan added a commit to ibhagwan/fzf-lua that referenced this pull request Dec 4, 2024
@ibhagwan
Copy link

ibhagwan commented Dec 4, 2024

@LoricAndre, FYI ibhagwan/fzf-lua@d9db3b6 added tmux support, all that's needed is to add the --tmux flag, either to setup or via command line, for example:

:FzfLua files fzf_opts.--tmux=center,40%,40%  fzf_bin=sk

The result:
image

I did discover one issue with tmux integration regarding the customization of the bg color which doesn't cover the entrire tmux popup, for example:

sk --height=100% --tmux center,40%,40% --color="bg:#ffcb8b"

image

Doing so with fzf yields:
image

@LoricAndre
Copy link
Contributor Author

TYSM for being so quick to react !
The BG thing is a bit weird, looks like the text is colored, not the window.
Given that I'm rewriting the entire UI right now, I think it will stay that way for now unfortunately, unless someone else opens an issue about it.

@ibhagwan
Copy link

ibhagwan commented Dec 4, 2024

TYSM for being so quick to react ! The BG thing is a bit weird, looks like the text is colored, not the window. Given that I'm rewriting the entire UI right now, I think it will stay that way for now unfortunately, unless someone else opens an issue about it.

No biggie as this is easily avoidable by not theming the background, just FYI.

Good luck on the rewrite and ty for your hard work 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tmux Anything related to sk-tmux or tmux integration
Projects
No open projects
Status: In review
Development

Successfully merging this pull request may close these issues.

Deprecate sk-tmux in flavor of the --tmux flag SKIM_TMUX=1 causes tmux pane to freeze with zsh
2 participants