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

tree view: per-character feedback for search typing #5

Open
lkraav opened this issue Nov 12, 2010 · 3 comments
Open

tree view: per-character feedback for search typing #5

lkraav opened this issue Nov 12, 2010 · 3 comments
Milestone

Comments

@lkraav
Copy link

lkraav commented Nov 12, 2010

when searching with /abcd inside tree view, it would be nice if the search bar tried to match something with every character typed, so you know immediately whether you're typing it right or if the file even exists in tree.

jonas added a commit that referenced this issue Apr 18, 2014
This API will allow to read key combos (issue #272 and issue #67) and
add support for incremental search (issue #5).
jonas added a commit that referenced this issue Mar 24, 2015
jonas added a commit that referenced this issue Mar 24, 2015
jonas added a commit that referenced this issue Mar 24, 2015
jonas added a commit that referenced this issue Mar 25, 2015
jonas added a commit that referenced this issue Mar 26, 2015
@jonas
Copy link
Owner

jonas commented Mar 26, 2015

This is the current UI:
incremental-search

jonas added a commit that referenced this issue Jun 14, 2015
@jonas jonas modified the milestones: tig-2.2, tig-2.3 Aug 13, 2016
jonas added a commit that referenced this issue Jun 28, 2017
jonas added a commit that referenced this issue Jul 12, 2017
@jonas jonas modified the milestones: tig-2.3.0, tig-2.3.2 Dec 15, 2017
@jonas jonas modified the milestones: tig-2.3.4, tig-2.4 Jan 31, 2018
@fcying
Copy link

fcying commented Jul 10, 2018

Is this feature available now? How can I open it?

abhinav added a commit to abhinav/tig that referenced this issue Aug 2, 2023
update_view_title can be called with a `struct view`
where `line` is NULL, and `lines` is 0.

Specifically, along this call stack:

    #0  update_view_title (view=0x3fdb88 <main_view>) at [...]/tig/src/view.c:690
    jonas#1  0x0000000000338018 in report_clear () at [...]/tig/src/display.c:565
    jonas#2  0x00000000003cfe5b in load_view (view=0x3fdb88 <main_view>, prev=0x3fdb88 <main_view>, flags=OPEN_
        at [...]/tig/src/view.c:857
    jonas#3  0x00000000003d0bc0 in open_view (prev=0x0, view=0x3fdb88 <main_view>, flags=OPEN_DEFAULT)
        at [...]/tig/src/view.c:894
    jonas#4  0x00000000003b2932 in open_main_view (prev=0x0, flags=OPEN_DEFAULT) at include/tig/main.h:57
    jonas#5  0x00000000003b0cca in view_driver (view=0x0, request=REQ_VIEW_MAIN) at [...]/tig/src/tig.c:179
    jonas#6  0x00000000003af96a in main (argc=1, argv=0x7fffffffddb8) at [...]/tig/src/tig.c:864

Specifically, load_view calls report_clear when `view->lines == 0`,
which calls `update_view_title`, which attempts `&view->line[...]`
on a null `line`.

It's not clear why this doesn't explode today.
I caught it when I ran tig compiled with Zig in debug mode
and it failed with an illegal instruction on the line:

    struct line *line = &view->line[view->pos.lineno];

Adding a check for `NULL` or `lines == 0` resolves the issue.
@MartyLake
Copy link

I would be very interested by this feature too !

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

No branches or pull requests

4 participants