Re: [dev] [surf] tabs and clipboard

2015-01-20 Thread Christoph Lohmann
Greetings.

On Wed, 21 Jan 2015 06:35:26 +0100 Markus Teich  
wrote:
> Christoph Lohmann wrote:
> > Separating  the  button events into config.h should be possible. I would
> > welcome a patch.
> 
> Heyho Christoph,
> 
> Is there a specific reason, why the button release event is used instead of 
> the
> button pressed event? I would prefer to use the later one because of that tiny
> little bit of faster reaction time.

That’s how it’s done in other GUIs, so you can click and keep it and on‐
ly release. It doesn’t matter for me, but others might not like it.


Sincerely,

Christoph Lohmann




Re: [dev] [surf] tabs and clipboard

2015-01-20 Thread Markus Teich
Christoph Lohmann wrote:
> Separating  the  button events into config.h should be possible. I would
> welcome a patch.

Heyho Christoph,

Is there a specific reason, why the button release event is used instead of the
button pressed event? I would prefer to use the later one because of that tiny
little bit of faster reaction time.

--Markus



Re: [dev] [surf] tabs and clipboard

2015-01-05 Thread Jochen Sprickerhof
* Dmitrij D. Czarkoff  [2015-01-05 08:04]:
> In tabbed you see titles of all tabs, in monocle view - only the title
> of the current window.

Have a look at the fancybar [1] patch. I've pushed a new version this
morning [2].

Cheers Jochen

[1] http://dwm.suckless.org/patches/fancybar
[2] 
http://git.suckless.org/sites/commit/?id=888f6f463a3726c472d80c625c0cb60daa9da876


signature.asc
Description: Digital signature


Re: [dev] [surf] tabs and clipboard

2015-01-05 Thread Markus Teich
Heyho,

Dmitrij D. Czarkoff wrote:
> 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.

Also you can use the ctrl-t command of tabbed which by default shows a list of
all opened windows in dmenu for easy selection.

--Markus



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



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 (better than)
searching in monocle windows, could you please elaborate?

thanks!
--s



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 isn’t an option on your Laptop?
> 
> Heyho,
> 
> As far as I understand, the touchpad can be configured in any way you like 
> with
> synaptics, but since this would be the only case where I need a middle mouse
> button and I don't want the „open new single window“ feature, it is most easy
> for me to patch this one line. To be honest I found it a little surprising and
> inconsistent when I noticed, that ctrl-button1 (new single window) and
> context menu -> „open in new window“ (new tab) did something different. Maybe
> this should be consistent and configurable in config.h?

There’s  an  extra mode other browsers don’t have to care about. Even if
it’s fixed in tabbed to have a more dynamic release and addition of tabs
the  concept  of embedding wouldn’t be useful anymore. It’s still under‐
used as it could be. Instead separate sub‐standards evolved in every ap‐
plication. I don’t see any need for further research into this direction
as of now to have more embedding everywhere.

Separating  the  button events into config.h should be possible. I would
welcome a patch.


Sincerely,

Christoph Lohmann




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 be configured in any way you like with
synaptics, but since this would be the only case where I need a middle mouse
button and I don't want the „open new single window“ feature, it is most easy
for me to patch this one line. To be honest I found it a little surprising and
inconsistent when I noticed, that ctrl-button1 (new single window) and
context menu -> „open in new window“ (new tab) did something different. Maybe
this should be consistent and configurable in config.h?

--Markus



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 window outside of tabbed.
> > 
> > What’s  the advantage of mapping this to Button1 and where would you put the
> > possibility to open a surf window outside of tab?
> 
> I am mainly using a Laptop with no external mouse connected, so just 
> touchpad. I
> don't use the pointer that often (Nearly only to click on links in surf I
> 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). However when researching some
> stuff, I sometimes want to open a link in a new instance and since it does not
> make sense for me to open it in a new window, I want to open it in a new tab.
> Is this usecase clear enough or should I elaborate more?

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?

This  is  configured using the »SoftButtonAreas« option in the synaptics
driver.


Sincerely,

Christoph Lohmann




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 and where would you put the
> possibility to open a surf window outside of tab?

I am mainly using a Laptop with no external mouse connected, so just touchpad. I
don't use the pointer that often (Nearly only to click on links in surf I
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). However when researching some
stuff, I sometimes want to open a link in a new instance and since it does not
make sense for me to open it in a new window, I want to open it in a new tab.
Is this usecase clear enough or should I elaborate more?

--Markus



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 it with ctrl-button2 (middle button/wheel).  See
> > buttonrelease() in source if you really want to map it to button1.
> 
> Thanks, this works. I just changed one line in buttonrelease():
> 
> -  newwindow(NULL, &arg, e->state & GDK_CONTROL_MASK);
> +  newwindow(NULL, &arg, 0);
> 
> Now I can open links in the same tab/window with button1 and in a new 
> tab/window
> with ctrl-button1 as I wanted to.

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 and where would you put
the possibility to open a surf window outside of tab?


Sincerely,

Christoph Lohmann




Re: [dev] [surf] tabs and clipboard

2015-01-03 Thread Markus Teich
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 it with ctrl-button2 (middle button/wheel).  See
> buttonrelease() in source if you really want to map it to button1.

Thanks, this works. I just changed one line in buttonrelease():

-  newwindow(NULL, &arg, e->state & GDK_CONTROL_MASK);
+  newwindow(NULL, &arg, 0);

Now I can open links in the same tab/window with button1 and in a new tab/window
with ctrl-button1 as I wanted to.

> Actually shift+ins is X11 clipboard, and surf indeed fills primary
> selection and not X11 clipboard.  You can use middle mouse button
> (wheel) to paste.  Otherwise you need a tool like parcellite¹, or you
> can edit surf's source to make use of X11 clipboard.

I'll have a look into this as well soon.

--Markus



Re: [dev] [surf] tabs and clipboard

2014-12-26 Thread Dmitrij D. Czarkoff
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 it with ctrl-button2 (middle button/wheel).  See
buttonrelease() in source if you really want to map it to button1.

> Also I noticed, if i select some text in surf it is not copied to the primary
> selection buffer, so I cannot use shift+ins (my primary way of pasting) to
> insert the selected text in this or any other surf instance.

Actually shift+ins is X11 clipboard, and surf indeed fills primary
selection and not X11 clipboard.  You can use middle mouse button
(wheel) to paste.  Otherwise you need a tool like parcellite¹, or you
can edit surf's source to make use of X11 clipboard.

-- 
Dmitrij D. Czarkoff

¹ http://parcellite.sourceforge.net/



[dev] [surf] tabs and clipboard

2014-12-26 Thread Markus Teich
Heyho,

I noticed two minor inconveniences with my surf/tabbed setup.

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.

Also I noticed, if i select some text in surf it is not copied to the primary
selection buffer, so I cannot use shift+ins (my primary way of pasting) to
insert the selected text in this or any other surf instance.

Is there already a solution I did not find to any of this problems?

--Markus