]> git.armaanb.net Git - chorizo.git/log
chorizo.git
9 years agoReactivate $LARIZA_USER_AGENT and use WebKit's default
Peter Hofmann [Sun, 9 Nov 2014 11:09:21 +0000 (12:09 +0100)]
Reactivate $LARIZA_USER_AGENT and use WebKit's default

9 years agoPort searching for text to WebKit2
Peter Hofmann [Sun, 9 Nov 2014 11:04:51 +0000 (12:04 +0100)]
Port searching for text to WebKit2

9 years agoREADME: Update link to WebKit docs
Peter Hofmann [Sun, 9 Nov 2014 10:51:53 +0000 (11:51 +0100)]
README: Update link to WebKit docs

9 years agoPort opening of new tabs to WebKit2
Peter Hofmann [Sun, 9 Nov 2014 10:51:24 +0000 (11:51 +0100)]
Port opening of new tabs to WebKit2

9 years agoCompletely remove adblock for now
Peter Hofmann [Sun, 9 Nov 2014 10:29:18 +0000 (11:29 +0100)]
Completely remove adblock for now

With WebKit2, adblock is no longer a trivial task. It must be realized
as a "web extension" in WebKit2. See, for example:

http://blogs.igalia.com/carlosgc/2013/09/10/webkit2gtk-web-process-extensions/

We need to connect to the "send-request" signal and stop the request
from being sent in the first place.

9 years agoPort downloads to WebKit2
Peter Hofmann [Sun, 9 Nov 2014 09:44:42 +0000 (10:44 +0100)]
Port downloads to WebKit2

9 years agoPort the most basic stuff to WebKit2
Peter Hofmann [Sat, 8 Nov 2014 09:48:39 +0000 (10:48 +0100)]
Port the most basic stuff to WebKit2

9 years agoPort to GTK+ 3 first
Peter Hofmann [Sat, 8 Nov 2014 09:14:48 +0000 (10:14 +0100)]
Port to GTK+ 3 first

9 years agoREADME: Link to okraits' fork
Peter Hofmann [Wed, 15 Oct 2014 17:18:18 +0000 (19:18 +0200)]
README: Link to okraits' fork

As suggested by #8.

9 years agoCode style: Allow more than 80 chars to avoid ugliness
Peter Hofmann [Sat, 9 Aug 2014 16:47:57 +0000 (18:47 +0200)]
Code style: Allow more than 80 chars to avoid ugliness

Plus, my "80 characters" only work with 4-spaced-tabs anyway. I might
rethink that.

9 years agoShow size of downloads in megabyte
Peter Hofmann [Sat, 9 Aug 2014 16:39:19 +0000 (18:39 +0200)]
Show size of downloads in megabyte

MB is good enough, I don't care about byte, kilobyte, megabyte,
gigabyte, ...

Yes, SI units.

9 years agoMinor improvement to changed_download_progress()
Peter Hofmann [Sat, 9 Aug 2014 16:25:30 +0000 (18:25 +0200)]
Minor improvement to changed_download_progress()

I checked WebKit's source code: webkit_download_get_destination_uri()
never returns NULL in lariza. It's because we set the destination URI in
the signal handler for the download request.

If g_filename_from_uri() really returned NULL for some reason, then it'd
be just plain wrong to announce the "suggested file name", because we
might be saving the download ... somewhere else. I doubt this function
ever returns NULL in lariza, though, but you never know.

So, now, the download manager will correctly show the URI if the
destination URI is "unknown".

9 years agoUser Agent: s/UPPERCASE/CAPITALIZED/
Peter Hofmann [Sat, 26 Jul 2014 16:54:02 +0000 (18:54 +0200)]
User Agent: s/UPPERCASE/CAPITALIZED/

CC #6.

9 years agoSteal surf's user agent
Peter Hofmann [Sat, 26 Jul 2014 08:17:15 +0000 (10:17 +0200)]
Steal surf's user agent

Ugly hackaround. Closes #6, though.

9 years agoFix loading of keywords
Peter Hofmann [Thu, 24 Jul 2014 17:36:42 +0000 (19:36 +0200)]
Fix loading of keywords

CC #5.

9 years agoAlways free "tokens" in keywords_load()
Peter Hofmann [Thu, 24 Jul 2014 17:23:42 +0000 (19:23 +0200)]
Always free "tokens" in keywords_load()

Closes #5.

9 years agoIntroduce $LARIZA_HOME_URI
Peter Hofmann [Thu, 10 Jul 2014 16:56:44 +0000 (18:56 +0200)]
Introduce $LARIZA_HOME_URI

As suggested by @okraits in #2.

9 years agoMod1 + d closes the download manager
Peter Hofmann [Fri, 4 Jul 2014 15:19:36 +0000 (17:19 +0200)]
Mod1 + d closes the download manager

While Mod1 + q is consistent with the main window, it also poses the
risk of accidentally closing the main window. With Mod1 + d it's more
like a "toggle the download manager".

9 years agoREADME fixes
Peter Hofmann [Sat, 28 Jun 2014 07:51:37 +0000 (09:51 +0200)]
README fixes

9 years agoFix a very important typo
Peter Hofmann [Sun, 22 Jun 2014 18:29:16 +0000 (20:29 +0200)]
Fix a very important typo

9 years agoOnly talk about URIs
Peter Hofmann [Sun, 22 Jun 2014 11:53:42 +0000 (13:53 +0200)]
Only talk about URIs

Let's stick to WebKit's and GNOME's terminology.

9 years agoREADME: Document URLs as arguments
Peter Hofmann [Sun, 22 Jun 2014 11:44:11 +0000 (13:44 +0200)]
README: Document URLs as arguments

9 years agoNo URLs specified? Open about:blank!
Peter Hofmann [Sun, 22 Jun 2014 11:41:21 +0000 (13:41 +0200)]
No URLs specified? Open about:blank!

9 years agoREADME: Wording
Peter Hofmann [Sat, 21 Jun 2014 21:13:04 +0000 (23:13 +0200)]
README: Wording

9 years agoFix crash when closing a tab that's still loading
Peter Hofmann [Sat, 21 Jun 2014 15:53:43 +0000 (17:53 +0200)]
Fix crash when closing a tab that's still loading

Disconnect the handler for "notify::progress" because that signal might
get fired after "c" has been free'd which resulted in a reproducible
crash.

9 years agoWarn when the XID from tabbed is 0
Peter Hofmann [Sat, 21 Jun 2014 07:23:26 +0000 (09:23 +0200)]
Warn when the XID from tabbed is 0

9 years agoAlways close tabbed's stdout when finished reading
Peter Hofmann [Sat, 21 Jun 2014 07:18:36 +0000 (09:18 +0200)]
Always close tabbed's stdout when finished reading

9 years agoFix some NULL pointers
Peter Hofmann [Sat, 21 Jun 2014 07:18:14 +0000 (09:18 +0200)]
Fix some NULL pointers

GLib catched these errors but it's wrong nevertheless.

9 years agoKeep the changed_* scheme for notify::*
Peter Hofmann [Thu, 19 Jun 2014 18:08:31 +0000 (20:08 +0200)]
Keep the changed_* scheme for notify::*

9 years agoCode style
Peter Hofmann [Thu, 19 Jun 2014 18:07:14 +0000 (20:07 +0200)]
Code style

9 years agoDownload manager: Show the real file name
Peter Hofmann [Thu, 19 Jun 2014 09:46:21 +0000 (11:46 +0200)]
Download manager: Show the real file name

9 years agoThe Big README Update
Peter Hofmann [Thu, 19 Jun 2014 09:18:16 +0000 (11:18 +0200)]
The Big README Update

9 years agoUse -Wno-unused-parameter instead of void casts
Peter Hofmann [Thu, 19 Jun 2014 09:05:18 +0000 (11:05 +0200)]
Use -Wno-unused-parameter instead of void casts

9 years agoAdd "toggle view source mode"
Peter Hofmann [Thu, 19 Jun 2014 09:02:21 +0000 (11:02 +0200)]
Add "toggle view source mode"

9 years agoMove reading _FIFO_SUFFIX to the right place
Peter Hofmann [Thu, 19 Jun 2014 08:38:32 +0000 (10:38 +0200)]
Move reading _FIFO_SUFFIX to the right place

9 years agoadblock_load(): Fix invalid regexes, support comments
Peter Hofmann [Thu, 19 Jun 2014 08:15:36 +0000 (10:15 +0200)]
adblock_load(): Fix invalid regexes, support comments

- Invalid regexes are no longer added to the list.
- Lines starting with a "#" are ignored.

9 years agoShorten some code
Peter Hofmann [Thu, 19 Jun 2014 08:07:06 +0000 (10:07 +0200)]
Shorten some code

9 years agoSmall costmetic fix
Peter Hofmann [Thu, 19 Jun 2014 08:05:49 +0000 (10:05 +0200)]
Small costmetic fix

9 years agoMouse wheel zoom
Peter Hofmann [Thu, 19 Jun 2014 08:05:37 +0000 (10:05 +0200)]
Mouse wheel zoom

9 years agoThe FIFO filename can have a suffix
Peter Hofmann [Thu, 19 Jun 2014 07:49:20 +0000 (09:49 +0200)]
The FIFO filename can have a suffix

This allows for launching lariza like this:

$ LARIZA_FIFO_SUFFIX=1 lariza file:///home/void/bookmarks.xhtml

And another instance like this:

$ LARIZA_FIFO_SUFFIX=2 lariza http://www.startpage.com

9 years agoImplement keyword based searching
Peter Hofmann [Thu, 19 Jun 2014 07:44:00 +0000 (09:44 +0200)]
Implement keyword based searching

9 years agoRework and extend hotkeys
Peter Hofmann [Thu, 19 Jun 2014 05:48:38 +0000 (07:48 +0200)]
Rework and extend hotkeys

hjkl is nice in a terminal, but it poses a problem in GUI programs: If
your program is not ENTIRELY controlled via keyboard, your right hand
has to reach from the mouse to the keyboard to the mouse to the
keyboard... That's nasty.

Now, all hotkeys can be hit using your left hand.

I also think that using Control as a modifier is uncomfortable. Your
pinkie has to do a lot of work and stays in an uncomfortable position.
Using Alt/Mod1 feels better.

Secondly, there's no need for scrolling hotkeys. This only makes sense
if your program has keyboard-only usage. I can scroll using the mouse
(plus, I have screen barriers to support this).

Furthermore, there's a hotkey now that enters search mode and hotkeys to
create or destroy windows/tabs.

I also differentiate between single-handed hotkeys and dual-handed
hotkeys. When you enter the location bar or search mode, you are going
to begin typing -- thus, your right hand MUST move from the mouse to the
keyboard. As a result, it doesn't make sense to make these hotkeys
reachable using only your left hand. Mod1+l to enter the location bar is
totally fine and so is Mod1+k for searching.

Of course, it's more comfortable if you can also close the download
manager using Mod1+q. Reloading is useful as well and I NEVER want to
have "reload WITH using the cache" (major annoyance of other browsers).

To sum it up, your left hand can stay relaxed over q, w, e, d.

9 years agoClose the adblock file handle
Peter Hofmann [Thu, 19 Jun 2014 05:34:46 +0000 (07:34 +0200)]
Close the adblock file handle

9 years agoDownload Manager
Peter Hofmann [Thu, 19 Jun 2014 05:25:31 +0000 (07:25 +0200)]
Download Manager

Hit ^D to open it.

According to sloccount, we have reached 731 lines of code now.

9 years agoGUI tweaks
Peter Hofmann [Thu, 19 Jun 2014 04:32:57 +0000 (06:32 +0200)]
GUI tweaks

9 years agoAn indicator that shows when a download has started
Peter Hofmann [Thu, 19 Jun 2014 04:31:34 +0000 (06:31 +0200)]
An indicator that shows when a download has started

9 years agoSort "struct Client"
Peter Hofmann [Wed, 18 Jun 2014 19:38:53 +0000 (21:38 +0200)]
Sort "struct Client"

9 years agoKick the lousy status bar
Peter Hofmann [Wed, 18 Jun 2014 19:37:04 +0000 (21:37 +0200)]
Kick the lousy status bar

- It didn't show the load progress.
- It destroyed the browser's usability. When there's a horizontal scroll
  bar, it MUST be placed at the bottom of the screen. There MUST NOT be
  any widget below it.

9 years agoBuilt-in download feature
Peter Hofmann [Tue, 17 Jun 2014 17:23:27 +0000 (19:23 +0200)]
Built-in download feature

Downloading via an external tool poses a problem: You have to pass the
current "web context" from the browser to your tool. This context
comprises cookies, the referrer, the user agent and information about
HTTP basic auth. With some effort, you can pass most of this to your
tool -- except for HTTP basic auth.

tl;dr: Downloading via wget is pretty complicated.

With this commit, WebKit handles the downloads. What's missing, are some
GUI elements to monitor and cancel downloads.

9 years agoFix and enhance creation/destruction of tabs
Peter Hofmann [Tue, 17 Jun 2014 15:14:34 +0000 (17:14 +0200)]
Fix and enhance creation/destruction of tabs

Websites can now open or close tabs/windows if requested by the user.

- We must not destroy the window in its destroy handler.
- WebKit's "new-window-policy-decision-requested" is totally irrelevant.
- Handle WebKit's "create-web-view" by allocating a new window and an
  "empty" WebView.
- Handle WebKit's "close-web-view" by destroying the window, which will
  call client_destroy(), which will do exactly the same as closing the
  window manually.

9 years agoNitpicking: ht_uri is a gchar *
Peter Hofmann [Mon, 16 Jun 2014 04:38:31 +0000 (06:38 +0200)]
Nitpicking: ht_uri is a gchar *

9 years agoFix missing URI in ^G
Peter Hofmann [Mon, 16 Jun 2014 04:35:31 +0000 (06:35 +0200)]
Fix missing URI in ^G

9 years agoAlso log the URI that the user actually requested
Peter Hofmann [Mon, 16 Jun 2014 04:34:08 +0000 (06:34 +0200)]
Also log the URI that the user actually requested

9 years agoREADME: Fix spelling ;-)
Peter Hofmann [Sun, 15 Jun 2014 18:57:42 +0000 (20:57 +0200)]
README: Fix spelling ;-)

9 years agoCode style: Fix whitespace and a wrap
Peter Hofmann [Sun, 15 Jun 2014 18:44:18 +0000 (20:44 +0200)]
Code style: Fix whitespace and a wrap

9 years agoREADME: Fix typo
Peter Hofmann [Sun, 15 Jun 2014 18:35:19 +0000 (20:35 +0200)]
README: Fix typo

9 years agoShorten grab_environment_configuration()
Peter Hofmann [Sun, 15 Jun 2014 16:09:43 +0000 (18:09 +0200)]
Shorten grab_environment_configuration()

9 years agoREADME: Mention wget
Peter Hofmann [Sun, 15 Jun 2014 16:09:21 +0000 (18:09 +0200)]
README: Mention wget

9 years agoREADME: A word about local storage
Peter Hofmann [Sun, 15 Jun 2014 16:04:22 +0000 (18:04 +0200)]
README: A word about local storage

9 years agoFull content zoom is buggy... -_-
Peter Hofmann [Sun, 15 Jun 2014 15:45:30 +0000 (17:45 +0200)]
Full content zoom is buggy... -_-

9 years agoRevert "Catch button-release-events, feels more natural"
Peter Hofmann [Sun, 15 Jun 2014 14:37:06 +0000 (16:37 +0200)]
Revert "Catch button-release-events, feels more natural"

This reverts commit 26713eb349b4c8b7d2fb22a5973e898ea43e1b7f.

It's a break between lariza and tabbed -- the latter responds to
button-press-events.

9 years agoDon't fiddle with __NAME__ at runtime
Peter Hofmann [Sun, 15 Jun 2014 14:22:54 +0000 (16:22 +0200)]
Don't fiddle with __NAME__ at runtime

9 years agoREADME tweaks
Peter Hofmann [Sun, 15 Jun 2014 14:28:13 +0000 (16:28 +0200)]
README tweaks

9 years agoUser configuration using environment variables
Peter Hofmann [Sun, 15 Jun 2014 13:36:21 +0000 (15:36 +0200)]
User configuration using environment variables

I think of these options (language, download dir, zoom) as user
settings. The user does not change them all the time. He sets them once
and for all in his shell rc.

"-e" and friends, however, are considered runtime settings. "THIS TIME,
I want my browser to debug all requests!"

9 years agoLaunch new tabbed windows relative to the current position
Peter Hofmann [Sun, 15 Jun 2014 10:50:05 +0000 (12:50 +0200)]
Launch new tabbed windows relative to the current position

9 years agoCatch button-release-events, feels more natural
Peter Hofmann [Sun, 15 Jun 2014 10:20:13 +0000 (12:20 +0200)]
Catch button-release-events, feels more natural

9 years agoBetter ensure_http_prefix() -> ensure_url_scheme()
Peter Hofmann [Sun, 15 Jun 2014 10:18:25 +0000 (12:18 +0200)]
Better ensure_http_prefix() -> ensure_url_scheme()

9 years agoensure_http_prefix knows about file://
Peter Hofmann [Sun, 15 Jun 2014 10:17:09 +0000 (12:17 +0200)]
ensure_http_prefix knows about file://

9 years agoUse ensure_http_prefix() in client_new()
Peter Hofmann [Sun, 15 Jun 2014 10:16:43 +0000 (12:16 +0200)]
Use ensure_http_prefix() in client_new()

9 years agoAuto-add "http://" when typed in location bar
Peter Hofmann [Sun, 15 Jun 2014 10:14:08 +0000 (12:14 +0200)]
Auto-add "http://" when typed in location bar

9 years agoRe-show URI in location bar on Escape
Peter Hofmann [Sun, 15 Jun 2014 09:44:48 +0000 (11:44 +0200)]
Re-show URI in location bar on Escape

9 years agoOpen new windows on middle click
Peter Hofmann [Sun, 15 Jun 2014 09:42:17 +0000 (11:42 +0200)]
Open new windows on middle click

9 years agoSimplify key_web_view()
Peter Hofmann [Sun, 15 Jun 2014 09:22:13 +0000 (11:22 +0200)]
Simplify key_web_view()

9 years agoSupport back/forward keys on mice
Peter Hofmann [Sun, 15 Jun 2014 09:19:04 +0000 (11:19 +0200)]
Support back/forward keys on mice

9 years agoRefactor: Declare variables at the beginning of functions
Peter Hofmann [Sun, 15 Jun 2014 09:08:58 +0000 (11:08 +0200)]
Refactor: Declare variables at the beginning of functions

9 years agoSet WM_CLASS
Peter Hofmann [Sun, 15 Jun 2014 09:07:57 +0000 (11:07 +0200)]
Set WM_CLASS

9 years agos/zea/lariza -- this is final
Peter Hofmann [Sun, 15 Jun 2014 08:51:48 +0000 (10:51 +0200)]
s/zea/lariza -- this is final

9 years agoRefactoring: Group and unify identifiers
Peter Hofmann [Sun, 15 Jun 2014 07:49:47 +0000 (09:49 +0200)]
Refactoring: Group and unify identifiers

9 years agoRefactoring: Make the application name a simple parameter in Makefile
Peter Hofmann [Sun, 15 Jun 2014 07:22:56 +0000 (09:22 +0200)]
Refactoring: Make the application name a simple parameter in Makefile

9 years agoRefactoring: Remove "zea" from function names
Peter Hofmann [Sun, 15 Jun 2014 07:19:28 +0000 (09:19 +0200)]
Refactoring: Remove "zea" from function names

9 years agoTry to explain the builtin tabbed launcher
Peter Hofmann [Sun, 15 Jun 2014 04:53:13 +0000 (06:53 +0200)]
Try to explain the builtin tabbed launcher

9 years agoFix minor memleak
Peter Hofmann [Sun, 15 Jun 2014 04:50:14 +0000 (06:50 +0200)]
Fix minor memleak

9 years agoDo not hardcode the path to the FIFO
Peter Hofmann [Sun, 15 Jun 2014 04:42:30 +0000 (06:42 +0200)]
Do not hardcode the path to the FIFO

9 years agoSet Accept-Language header
Peter Hofmann [Sun, 15 Jun 2014 04:24:27 +0000 (06:24 +0200)]
Set Accept-Language header

Deep down inside... Had to look into dwb's code to find out how to do
this. Kudos, dear portix!

9 years agoUsage: There can be multiple options and multiple URIs
Peter Hofmann [Sun, 15 Jun 2014 04:05:34 +0000 (06:05 +0200)]
Usage: There can be multiple options and multiple URIs

9 years agoDisable tabbed on "-e"
Peter Hofmann [Sun, 15 Jun 2014 04:02:46 +0000 (06:02 +0200)]
Disable tabbed on "-e"

9 years agoDeal with embedding failures
Peter Hofmann [Sun, 15 Jun 2014 04:01:58 +0000 (06:01 +0200)]
Deal with embedding failures

Now, that's a real issue. :-)

9 years agoRevert "Deal with race conditions while embedding"
Peter Hofmann [Sun, 15 Jun 2014 03:57:53 +0000 (05:57 +0200)]
Revert "Deal with race conditions while embedding"

This reverts commit c32e64b89186c09c5d2c9f82a18e0a541dd414b4.

Nonsense.

We read the XID from tabbed, which means tabbed must know its XID, which
means there must be a window to plug-in to.

9 years agoDeal with race conditions while embedding
Peter Hofmann [Sat, 14 Jun 2014 19:57:04 +0000 (21:57 +0200)]
Deal with race conditions while embedding

I have not encountered any race conditions. In theory, they could
happen, though.

9 years agoAbort on invalid arguments
Peter Hofmann [Sat, 14 Jun 2014 19:43:48 +0000 (21:43 +0200)]
Abort on invalid arguments

9 years agoNegating options are upper case
Peter Hofmann [Sat, 14 Jun 2014 19:38:46 +0000 (21:38 +0200)]
Negating options are upper case

9 years agoLaunch tabbed automatically
Peter Hofmann [Sat, 14 Jun 2014 19:38:13 +0000 (21:38 +0200)]
Launch tabbed automatically

9 years agoSimplify zea_load_adblock()
Peter Hofmann [Sat, 14 Jun 2014 18:07:28 +0000 (20:07 +0200)]
Simplify zea_load_adblock()

9 years agoCooperative instances
Peter Hofmann [Sat, 14 Jun 2014 17:58:20 +0000 (19:58 +0200)]
Cooperative instances

9 years agoUse g_build_filename()
Peter Hofmann [Sat, 14 Jun 2014 17:12:20 +0000 (19:12 +0200)]
Use g_build_filename()

9 years agoUI tweaks
Peter Hofmann [Sat, 14 Jun 2014 15:52:14 +0000 (17:52 +0200)]
UI tweaks

9 years agoFix lulz
Peter Hofmann [Sat, 14 Jun 2014 15:45:46 +0000 (17:45 +0200)]
Fix lulz

9 years agoComplete adblock
Peter Hofmann [Sat, 14 Jun 2014 15:45:34 +0000 (17:45 +0200)]
Complete adblock

9 years agoPrepare adblock
Peter Hofmann [Sat, 14 Jun 2014 15:02:38 +0000 (17:02 +0200)]
Prepare adblock

9 years agoLaunch all URIs specified on the command line
Peter Hofmann [Sat, 14 Jun 2014 14:45:56 +0000 (16:45 +0200)]
Launch all URIs specified on the command line