≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #2002

Bug #2002: The file list does not refresh in realtime

Kind bug
Product Command-T
When Created 2012-09-07T08:58:40Z, updated 2012-09-08T17:23:09Z
Status closed
Reporter anonymous
Tags no tags

Description

When I start the vim instance in the directory, say the contents of that directory were [a.txt, b.txt, c.txt, d.txt]

While vim is running, if I delete the file c.txt from some other terminal... And then execute command t, it oes not show me the updated file list but the one which was there when the vim was started...

Comments

  1. Greg Hurrell 2012-09-08T17:20:05Z

    This is because the directory contents are cached for performance reasons (Command-T was written to work well on projects with 10s of thousands of files).

    Given a sufficiently recent version of Command-T (eg. 1.4) you can hit C-f when the match listing is open to flush the cache and trigger a refresh of the match listing.

    On older versions of Command-T you can issue a :CommandTFlush command to clear out the cache. If you find yourself doing this a lot you might want to set up a mapping for it in your .vimrc; something like:

    map <leader>f :CommandTFlush<CR>

    Personally, I used to use a mapping like that, but I dropped it with the arrival of the C-f feature, as I don't need it any more.

  2. Greg Hurrell 2012-09-08T17:23:05Z

    There are a couple tickets in here related to making the cache-flushing happen automatically, eg. ticket #1626. There's also this pull request which adds auto-flushing but can't be merged as it is not cross-platform.

    Going to mark this ticket as closed but feel free to comment if you have comments or observations.

  3. Greg Hurrell 2012-09-08T17:23:09Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets