scope.nvim icon indicating copy to clipboard operation
scope.nvim copied to clipboard

[Feature Request] Auto associate a set of file with a specific tab when openning

Open tuanbass opened this issue 1 year ago • 4 comments

I'm looking for a way to define a condition to associate a set of file with a tab For example, I would like when openning, each "*.test.ts" come into a specific tab.

It's best if I can provide a callback to define association policy during setup, something like the pseudo code

require("scope").setup {
   policy = function (file) 
       if (file.end_width(".test.ts")  then return 1 end 
   end 
}

tuanbass avatar Aug 04 '23 03:08 tuanbass