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

Support for an overrides file. #4

Closed
wants to merge 2 commits into from
Closed

Conversation

jhuttner
Copy link

User-defined key patterns allow for:

Opening stubborn files more quickly. (Especially useful if the command-t search algo doesn't jive well with the filename)

Memorizing keystrokes needed to open commonly-used files.

To use:
Where you launch vim, create a file named .command-t.yaml

Define an overrides hash:

 overrides:  {
     cc : public/js/asynchronous_call.js,
     af : controllers/user/anonymous_friend.py
 }

Typing "cc" within command-T will put the corresponding file at the top of your hit list. Just hit Enter and it opens.

@wincent wincent changed the base branch from master to main June 7, 2021 22:34
wincent added a commit that referenced this pull request Jul 4, 2022
So I can see backtraces on Arch:

    yay -S gdb

Core dump files get written to `/var/lib/systemd/coredump/`, owned as
root, and zstd-compressed, so to read them, you have to do something
like:

    # unzstd /var/lib/systemd/coredump/core.nvim.1000.008a013d9f0d4e769d9dbcfdd9d9584a.13538.1656944479000000.std
    # chmod 666 /var/lib/systemd/coredump/core.nvim.1000.008a013d9f0d4e769d9dbcfdd9d9584a.13538.1656944479000000
    $ gdb nvim /var/lib/systemd/coredump/core.nvim.1000.008a013d9f0d4e769d9dbcfdd9d9584a.13538.1656944479000000
    (gdb) bt

Which shows (excerpted):

    Core was generated by `nvim'.
    Program terminated with signal SIGSEGV, Segmentation fault.

    warning: Section `.reg-xstate/13538' in core file too small.
    #0  match_thread (thread_args=0x55d4e0213230) at matcher.c:393
    393             haystack_t *match = args->corpus->haystacks[i];
    [Current thread is 1 (Thread 0x7fcda9b93740 (LWP 13538))]
    (gdb) bt
    #0  match_thread (thread_args=0x55d4e0213230) at matcher.c:393
    #1  0x00007fcda9e0f5ff in commandt_matcher_run (matcher=0x55d4e07eb9e0, needle=0x7fcda9e110f7 "stuff")
        at matcher.c:211
    #2  0x00007fcda9e0fb28 in commandt_temporary_demo_function () at matcher.c:312
    #3  0x00007fcda9bce309 in lj_vm_ffi_call () at buildvm_x86.dasc:2701
    #4  0x00007fcda9bf3b5e in lj_ccall_func (L=<optimized out>, cd=<optimized out>)
        at /build/luajit/src/luajit-2.0-4c2441c/src/lj_ccall.c:1167
    ...
@wincent
Copy link
Owner

wincent commented Aug 26, 2022

Given the big rewrite for v6.0.x, older PRs will need to be re-rolled against main and target the new version, so I'm closing this one out. Feedback issue for 6.0.x is here:

@wincent wincent closed this Aug 26, 2022
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.

2 participants