Re: Feature request: Add a --role= command line argument for gvim

2015-04-25 Fir de Conversatie Tomas Sandven
On Saturday, 25 April 2015 21:55:15 UTC+2, James McCoy  wrote:
> On Sat, Apr 25, 2015 at 12:42:04PM -0700, Tomas Sandven wrote:
> > When multiple separate gvim instances are running, there is no good
> > way to tell them apart (that I've found.)
> > 
> > I suggest adding a command line argument so that gvim instances can be 
> > launched
> > with different X roles:
> > 
> > gvim --role=notepad
> > gvim --role=dev_proj1
> > gvim --role=dev_proj2
> 
> This is already supported if you have a Gtk build of Vim.
> 
> $ gvim --help
> …
> Arguments recognised by gvim (GTK+ version):
>-font  Use  for normal text (also: -fn)
>-geometry  Use  for initial geometry (also: -geom)
>-reverse Use reverse video (also: -rv)
>-displayRun vim on  (also: --display)
>--role Set a unique role to identify the main window
>--socketid  Open Vim inside another GTK widget
>--echo-wid   Make gvim echo the Window ID on stdout
> 
> Cheers,
> -- 
> James
> GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy 

Wow, you're right... I've been through "man vim" several times, and the GTK+ 
specific stuff wasn't in there.

Thanks!

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Feature request: Add a --role= command line argument for gvim

2015-04-25 Fir de Conversatie Tomas Sandven
When multiple separate gvim instances are running, there is no good
way to tell them apart (that I've found.)

I suggest adding a command line argument so that gvim instances can be launched
with different X roles:

gvim --role=notepad
gvim --role=dev_proj1
gvim --role=dev_proj2

This makes is easy to apply different window management rules to the
different gvim instances.

I am using i3wm with saved layouts to start my work environment. This
involves 8 terminals and 3 instances of gvim. gnome-terminal has a
--role= option, but gvim doesn't, so I currently have to position those windows
manually every time.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.