Closed TahaMagdy closed 2 years ago
Nothing's implemented currently but I can see two relatively straightforward ways to do this:
.vimrc
or via a config file).Finally, I think a variant on that last one — but not easy to implement — would be to allow frequently-used files to be boosted higher in results listings.
The fist solution is the one I think. To make "Bookmarks". How can I do that please? You may tell me how the CommandT list read the array of files? And I'll implement it.
In your case, you'd create a new scanner to read the list of "bookmarks", and your finder would be very simple because all it has to do is instantiate the scanner; as you're dealing with files, just letting the superclass open_selection
implementation handle the actual opening should be fine, as long as you're dealing with absolute paths.
Finally, you have to wire things up so that the controller knows about your finder, and the user has a Vim command that they can invoke to access your finder.
Given the big rewrite for v6.0.x, I'm closing all older issues as there is unlikely to be anything significant happening on the 5-x-devel
branch from here on[^patches]. Feedback issue for 6.0.x is here:
[^patches]: Patches and PRs would be welcome, but my personal efforts are going to be directed towards main
.
Can I select files that I open frequently and put them in a CommandT list; so that I open the CommandT list to open a file from them?!
I don't mean a list of the most recent opened file, I mean that I specifically select the files to be in that list.
How can I do that?!