question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to clear column's cache?

See original GitHub issue

Problems summary

defx-git を fork して、getcwd() ベースで git status を取得するのではなく、 defx の candidate の root directory から git の status を取得する実装を行いました。 (つまり、defx 上でディレクトリ移動しても適切に git status が反映されるということです。)

https://github.com/kristijanhusak/defx-git/pull/1/files

コレ自体はうまくできていそうなのですが、 差分を commit&push したあとなどに Column 内に保持している git status の結果キャッシュを破棄する方法がわかりませんでした。 また、できれば対応したい機能として、Nsec 毎にキャッシュを更新するなども考えられるのかなと思っています。

これらは defx の思想としてはどのように実現すべきでしょうか。

Expected

  • Column が保持するキャッシュを redraw 時に破棄できる
  • Column が一定期間毎に内容をリフレッシュできる?

Environment Information

  • defx version(SHA1): ** N/A

  • OS: ** N/A

  • neovim/Vim version: ** N/A

  • :checkhealth or :CheckHealth result(neovim only): ** N/A

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

** N/A

The reproduce ways from neovim/Vim starting (Required!)

** N/A

Generate a logfile if appropriate

** N/A

Screen shot (if possible)

** N/A

Upload the log file

** N/A

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Shougocommented, Oct 29, 2018

You can still leave it in case someone else needs it.

I think it can be useful. So I don’t remove it.

0reactions
kristijanhusakcommented, Oct 29, 2018

@Shougo it turned out that this hook is not needed. I updated my code to work without it. You can still leave it in case someone else needs it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Clear the Column List in an Excel Spreadsheet
1. Click on the letter associated with the appropriate column to highlight all cells in the column. · 2. Right-click a highlighted column....
Read more >
Delete & Clear Pivot Table Cache | MyExcelOnline
STEP 5: Go back to your Pivot Table. Right-click and select Refresh. Clear & Delete Old Pivot Table Items cache. Click the Column...
Read more >
How to update the column and clear cache from datatable ...
I am using fnUpdate to update the columns,it is updating the columns correctly but when i insert new row and try to update...
Read more >
How to Clear Android Cache - groovyPost
Open Settings on your Android device. · Scroll down the menu and tap Apps. · Tap the hamburger menu next to the Your...
Read more >
clear cache for ROW SELECTOR Columns — oracle-tech
I have a 'DELETE' button.I select the specific row by clicking on the check box on the left side of each row. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found