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: highlight buffers in the same directory (opt-out) #351

Merged
merged 2 commits into from
Aug 10, 2024

Conversation

mikavilpas
Copy link
Owner

This commit adds a new configuration option,
highlight_hovered_buffers_in_same_directory (boolean), which will
highlight buffers that are in the same directory as the hovered buffer
using a less intensive color.

This provides an intuitive way to see that you are close to a window
that is open, but not quite there yet, which can help when you want to
copy paste files in yazi.

The setting is on by default.

highlight_in_same_directory.mov

If you don't like the default color, you can change it by setting
highlight_groups.hovered_buffer_in_same_directory in your config,
similarly to the already existing highlight_groups.hovered_buffer.

…h 5 updates

Bumps the npm-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [tsx](https://github.com/privatenumber/tsx) | `4.16.5` | `4.17.0` |
| [winston](https://github.com/winstonjs/winston) | `3.13.1` | `3.14.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.1.0` | `22.2.0` |
| [eslint](https://github.com/eslint/eslint) | `9.8.0` | `9.9.0` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `5.3.5` | `5.4.0` |

Bumps the npm-dependencies group with 5 updates in the /integration-tests directory:

| Package | From | To |
| --- | --- | --- |
| [tsx](https://github.com/privatenumber/tsx) | `4.16.5` | `4.17.0` |
| [winston](https://github.com/winstonjs/winston) | `3.13.1` | `3.14.1` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `22.1.0` | `22.2.0` |
| [eslint](https://github.com/eslint/eslint) | `9.8.0` | `9.9.0` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `5.3.5` | `5.4.0` |



Updates `tsx` from 4.16.5 to 4.17.0
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](privatenumber/tsx@v4.16.5...v4.17.0)

Updates `winston` from 3.13.1 to 3.14.1
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.13.1...v3.14.1)

Updates `@types/node` from 22.1.0 to 22.2.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 9.8.0 to 9.9.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.8.0...v9.9.0)

Updates `vite` from 5.3.5 to 5.4.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@5.4.0/packages/vite)

Updates `tsx` from 4.16.5 to 4.17.0
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs)
- [Commits](privatenumber/tsx@v4.16.5...v4.17.0)

Updates `winston` from 3.13.1 to 3.14.1
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.13.1...v3.14.1)

Updates `@types/node` from 22.1.0 to 22.2.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 9.8.0 to 9.9.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.8.0...v9.9.0)

Updates `vite` from 5.3.5 to 5.4.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@5.4.0/packages/vite)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@mikavilpas mikavilpas force-pushed the highlight-buffers-in-same-directory branch 2 times, most recently from 121f885 to a02ef95 Compare August 10, 2024 06:43
mikavilpas added a commit that referenced this pull request Aug 10, 2024
This commit adds a new configuration option,
`highlight_hovered_buffers_in_same_directory` (boolean), which will
highlight buffers that are in the same directory as the hovered buffer
using a less intensive color.

This provides an intuitive way to see that you are close to a window
that is open, but not quite there yet, which can help when you want to
copy paste files in yazi.

The setting is on by default.

If you don't like the default color, you can change it by setting
`highlight_groups.hovered_buffer_in_same_directory` in your config,
similarly to the already existing `highlight_groups.hovered_buffer`.
@mikavilpas mikavilpas force-pushed the highlight-buffers-in-same-directory branch from a02ef95 to b90455e Compare August 10, 2024 06:44
@mikavilpas mikavilpas enabled auto-merge (rebase) August 10, 2024 06:45
This commit adds a new configuration option,
`highlight_hovered_buffers_in_same_directory` (boolean), which will
highlight buffers that are in the same directory as the hovered buffer
using a less intensive color.

This provides an intuitive way to see that you are close to a window
that is open, but not quite there yet, which can help when you want to
copy paste files in yazi.

The setting is on by default.

If you don't like the default color, you can change it by setting
`highlight_groups.hovered_buffer_in_same_directory` in your config,
similarly to the already existing `highlight_groups.hovered_buffer`.
@mikavilpas mikavilpas force-pushed the highlight-buffers-in-same-directory branch from b90455e to 0a92928 Compare August 10, 2024 06:46
@mikavilpas mikavilpas merged commit 879984b into main Aug 10, 2024
14 checks passed
@mikavilpas mikavilpas deleted the highlight-buffers-in-same-directory branch August 10, 2024 06:49
This was referenced Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant