Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Christoph Lohmann
Greetings. On Sun, 04 Jan 2015 09:01:28 +0100 Markus Teich wrote: > Heyho, > > Dmitrij D. Czarkoff wrote: > > Markus Teich said: > > > I would like to open a link in a new tab with ctrl-button1 instead of > > > opening up > > > a new surf instance outside of tabbed. > > > > You can already do

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Markus Teich
Christoph Lohmann wrote: > Currently surf does open a new tab with the middle mouse click and when you > use the context menu with the right mouse click. What you changed removed > the possibility to open a new surf window outside of tabbed. > > What’s the advantage of mapping this to Button1

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Christoph Lohmann
Greetings. On Sun, 04 Jan 2015 13:27:08 +0100 Markus Teich wrote: > Christoph Lohmann wrote: > > Currently surf does open a new tab with the middle mouse click and when you > > use the context menu with the right mouse click. What you changed removed > > the possibility to open a new surf wi

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Markus Teich
Christoph Lohmann wrote: > I just try to elaborate if it’s useful to have this as default in surf. Most > touchpads have a three mouse button emulation by mapping certain parts of > it to the mouse buttons. This isn’t an option on your Laptop? Heyho, As far as I understand, the touchpad can

[dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
Hello, I submitted a patch yesterday so that expandtab and tabwidth are set in config.def.h, but it was complete shit. Discard the other one. This one should be much better. I had to add arguments to editor_new(). Sorry for yesterday's shitty patch. --- config.def.h | 3 +++ editor.c | 6 +++

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Christoph Lohmann
Greetings. On Sun, 04 Jan 2015 16:47:09 +0100 Markus Teich wrote: > Christoph Lohmann wrote: > > I just try to elaborate if it’s useful to have this as default in surf. > > Most > > touchpads have a three mouse button emulation by mapping certain parts of > > it to the mouse buttons. This

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Silvan Jegen
Heyhey On Sun, Jan 4, 2015 at 4:42 PM, Matthias Rabault wrote: > I submitted a patch yesterday so that expandtab and tabwidth are set in > config.def.h, but it was complete shit. Discard the other one. This one > should be much better. I had to add arguments to editor_new(). > > Sorry for yesterd

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Dimitris Papastamos
> -Editor *editor_new(int width, int height) { > +Editor *editor_new(int width, int height, int tabwidth, bool expandtab) { I am not affiliated with vis or have any familiarity with it but this doesn't make sense. I'd expect tabwidth/expandtab to be global variables in this case as they affect gl

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
Oops ... The empty line removal was an accident. As to yesterday's blunder, I knew how to use the preprocessor, I was only tired and did everything too fast ... Silvan Jegen a écrit : >Heyhey > >On Sun, Jan 4, 2015 at 4:42 PM, Matthias Rabault > wrote: >> I submitted a patch yesterday so that

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
I see your point and I agree. I didn't think of that, so I'll have to think of another way to do that, which doesn't change the prototype. Thanks for the insight ! Dimitris Papastamos a écrit : >> -Editor *editor_new(int width, int height) { >> +Editor *editor_new(int width, int height, int ta

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Silvan Jegen
On Sun, Jan 04, 2015 at 04:37:06PM +, Dimitris Papastamos wrote: > > -Editor *editor_new(int width, int height) { > > +Editor *editor_new(int width, int height, int tabwidth, bool expandtab) { > > I am not affiliated with vis or have any familiarity with it > but this doesn't make sense. I'd

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread FRIGN
On Sun, 04 Jan 2015 17:47:58 +0100 Matthias Rabault wrote: Hey Matthias, > I see your point and I agree. I didn't think of that, so I'll have to > think of another way to do that, which doesn't change the prototype. > Thanks for the insight! one way to handle this is to pull it in from vis.c vi

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
Thanks for the patch, I'll check it out this evening (can't yet, I'm using my phone). What I was thinking of was adding code in main() that alters the Editor structure according to config.def.h defines, just before calling the main loop. I'm trying that tonight, but what do you think of that ?

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Silvan Jegen
On Sun, Jan 04, 2015 at 06:12:00PM +0100, Matthias Rabault wrote: > Thanks for the patch, I'll check it out this evening (can't yet, I'm > using my phone). What I was thinking of was adding code in main() that > alters the Editor structure according to config.def.h defines, just > before calling th

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
I like your idea of passing a pointer to the config struct, that's cleaner and if new options are created, we only add them to the config structure without adding new arguments to editor_new(). Silvan Jegen a écrit : >On Sun, Jan 04, 2015 at 06:12:00PM +0100, Matthias Rabault wrote: >> Thanks

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Marc André Tanner
On Sun, Jan 04, 2015 at 06:22:00PM +0100, Silvan Jegen wrote: > On Sun, Jan 04, 2015 at 06:12:00PM +0100, Matthias Rabault wrote: > > Thanks for the patch, I'll check it out this evening (can't yet, I'm > > using my phone). What I was thinking of was adding code in main() that > > alters the Editor

Re: [dev] [vis] [PATCH] Set tabwidth and expandtab in config.def.h

2015-01-04 Thread Matthias Rabault
On Sun, Jan 04, 2015 at 06:52:00PM +0100, Marc André Tanner wrote: > On Sun, Jan 04, 2015 at 06:22:00PM +0100, Silvan Jegen wrote: > > On Sun, Jan 04, 2015 at 06:12:00PM +0100, Matthias Rabault wrote: > > > Thanks for the patch, I'll check it out this evening (can't yet, I'm > > > using my phone).

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread stanio
Hi, * Markus Teich 2015-01-04 13:03 > think). Since I also mostly use mono/fullscreen mode of dwm, opening single > Windows with no tabbing capability seems rather useless (more windows in the > view, more time spent finding the right one). how is searching in tabbed windows different from (bett

Re: [dev] [surf] tabs and clipboard

2015-01-04 Thread Dmitrij D. Czarkoff
sta...@cs.tu-berlin.de said: > how is searching in tabbed windows different from (better than) > searching in monocle windows, could you please elaborate? In tabbed you see titles of all tabs, in monocle view - only the title of the current window. -- Dmitrij D. Czarkoff