Friday, April 13, 2012

Re: MRU plugin

Hi,

I have updated the MRU plugin and added the following features:

* Support for opening files always in tabs (MRU_Open_File_Use_Tabs option)
* Support for opening the MRU window always even for single filename matches (MRU_Window_Open_Always)
* Support for opening files in vertically split windows.

To open a file from the MRU list always in a tab, you can now set the MRU_Open_File_Use_Tabs
variable to 1 in your .vimrc file. To open the MRU window even for single matched filename, you can
set the MRU_Window_Open_Always variable to 1.

I am attaching the updated plugin to this e-mail. Let me know if you see any problems with it.
I will shortly upload this to the Vim online site.

- Yegappan


From: Ben Fritz <fritzophrenic@gmail.com>
To: vim_use@googlegroups.com
Cc: yegappan@yahoo.com
Sent: Friday, April 13, 2012 1:39 PM
Subject: Re: MRU plugin

On Friday, April 13, 2012 2:21:55 PM UTC-5, Tarlika Elisabeth Schmitz wrote:
> On Mon, 2 Apr 2012 07:06:15 -0700 (PDT)
> Ben Fritz wrote:
> >
> >Unfortunately if there is only one match (e.g. if you use tab
> >completion of the file name), the file opens directly. I've not yet
> >bothered to change the way this works, but it annoys me occasionally.
>
> Ben, I have fixed your problem and my problem.
>
> What's the procedure for submitting my patch? (never done this before)
> I see the plugin is provided on vim.org and github.
>
> I can create a login for vim.org and upload the new version but I have
> no idea what the procedure for github is.
>

Look up the email address of the script author, Yegappan, by following the vim.org link to his user profile. Send any updates via email, unless there are other instructions on the script page.

Note, I'm pretty sure the "if there's only one match, open it" behavior is intentional; however it would be nice to have a way to open in a new tab or window even if there's only one match. Maybe adding an :MRU! command (with the bang) could force the window to open even if there's only one match.

No comments: