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

Search feature searches on line numbers #2675

Open
dmell opened this issue Sep 27, 2023 · 0 comments · May be fixed by #2689
Open

Search feature searches on line numbers #2675

dmell opened this issue Sep 27, 2023 · 0 comments · May be fixed by #2689
Labels
bug Something isn't working

Comments

@dmell
Copy link

dmell commented Sep 27, 2023

What steps will reproduce the bug?

  1. open a file with bat
  2. search for a number, e.g. 4, using /

What happens?

bat researches the pattern also in the title and line numbers (so 4, 14, 24 etc. will be considered results).

What did you expect to happen instead?

I expected to only find results in the content of the file.

How did you install bat?

sudo dpkg -i <latest release>

bat version and environment

Software version

bat 0.23.0 (871abd2)

Operating system

Linux 5.15.0-84-generic

Command-line

bat test --diagnostic 

Environment variables

SHELL=/usr/bin/zsh
PAGER=less
LESS=-R
LANG=en_US.UTF-8
LC_ALL=<not set>
BAT_PAGER=<not set>
BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
XDG_CONFIG_HOME=<not set>
XDG_CACHE_HOME=<not set>
COLORTERM=truecolor
NO_COLOR=<not set>
MANPAGER=<not set>

System Config file

Could not read contents of '/etc/bat/config': No such file or directory (os error 2).

Config file

Could not read contents of '/home/damiano/.config/bat/config': No such file or directory (os error 2).

Custom assets metadata

Could not read contents of '/home/damiano/.cache/bat/metadata.yaml': No such file or directory (os error 2).

Custom assets

'/home/damiano/.cache/bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> less --version 
less 551 (GNU regular expressions)
Copyright (C) 1984-2019  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: http://www.greenwoodsoftware.com/less
@dmell dmell added the bug Something isn't working label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant