Tim Starling wrote:
> James Vega wrote: > > I've given it a shot and it's working well for me. One thing I did > > notice is that the files Vim edits aren't added to Gtk's recently used > > list. Based on the patch, this doesn't look like it's a regression in > > behavior from the last time Vim was using GtkFileChooser. > > > > I think it'd be good to get the patch as is included so Vim is no longer > > using a deprecated (and as of Gtk3 removed) widget. Also, > > GtkFileChooser is more intuitive to use than GtkFileSelection (where > > it's non-obvious how to select hidden files). > > > > It would be interesting to look into how (and whether) Vim should make > > use of Gtk's recently used list, especially since not all of Vim's > > buffers directly relate to an actual file. > > I imagine it would be done in a manner along the lines of the attached > patch file. It was briefly tested. > > I'm not a big fan of #ifdef so I added a function called > gui_mch_file_opened() which allows any GUI module to perform tasks on > file open. I put it near similar #ifdef-based notifications for Sun > Workshop and Netbeans. > > My knowledge of the vim source is rudimentary. Some more callers might > have to be added, such as when saving a new file. It looks like this will also add files when using a command like ":grep" and Vim scripts looking through files. It's probably better to only do this when the user typed the edit command. # include <gio/gio.h> Since when was this file available? Might need a configure check. -- BLACK KNIGHT: None shall pass. ARTHUR: I have no quarrel with you, brave Sir knight, but I must cross this bridge. BLACK KNIGHT: Then you shall die. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---