From 46a46e965e3f46901c096691bb3c9104d8685419 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 18 Mar 2013 00:47:08 +0100 Subject: [PATCH] Renamed the project from vimp to vimb. There is already a software calles vimp so I think it will be better to rename this little project. --- README.org | 6 ++--- config.mk | 2 +- doc/{vimp.1.txt => vimb.1.txt} | 40 +++++++++++++++++----------------- src/command.c | 2 +- src/command.h | 2 +- src/completion.c | 2 +- src/completion.h | 2 +- src/config.h | 2 +- src/dom.c | 2 +- src/dom.h | 2 +- src/hints.c | 4 ++-- src/hints.h | 2 +- src/hints.js | 2 +- src/history.c | 2 +- src/history.h | 2 +- src/keybind.c | 2 +- src/keybind.h | 2 +- src/main.c | 12 +++++----- src/main.h | 2 +- src/searchengine.c | 2 +- src/searchengine.h | 2 +- src/setting.c | 8 +++---- src/setting.h | 2 +- src/util.c | 6 ++--- src/util.h | 2 +- 25 files changed, 57 insertions(+), 57 deletions(-) rename doc/{vimp.1.txt => vimb.1.txt} (91%) diff --git a/README.org b/README.org index 519dc61..bd4151a 100644 --- a/README.org +++ b/README.org @@ -1,6 +1,6 @@ -* Vimp - Vimp is a web browser that behaves like the Vimprobable but with some - paradigms from dwb and hopefully a cleaner code base. The goal of Vimp is to +* vimb + Vimb is a web browser that behaves like the Vimprobable but with some + paradigms from dwb and hopefully a cleaner code base. The goal of Vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience with low memory and cpu usage. ** Features diff --git a/config.mk b/config.mk index f26da6f..f69cc80 100644 --- a/config.mk +++ b/config.mk @@ -1,7 +1,7 @@ #----------------user/install options---------------- VERSION = 0.1.4 -PROJECT = vimp +PROJECT = vimb PREFIX ?= /usr/local/ BINDIR ?= $(PREFIX)bin/ MANDIR ?= $(PREFIX)share/man/ diff --git a/doc/vimp.1.txt b/doc/vimb.1.txt similarity index 91% rename from doc/vimp.1.txt rename to doc/vimb.1.txt index eeacb44..e28db42 100644 --- a/doc/vimp.1.txt +++ b/doc/vimb.1.txt @@ -1,22 +1,22 @@ .\" Process this file with -.\" groff -man -Tascii vimp.1 -.TH vimp 1 "16/02/2013" "vimp/VERSION" "Vimp Manual" +.\" groff -man -Tascii vimb.1 +.TH vimb 1 "16/02/2013" "vimb/VERSION" "Vimb Manual" .SH NAME -vimp \- A modal web browser based on webkit thats inspired by vim the great editor. +vimb \- A modal web browser based on webkit thats inspired by vim the great editor. .SH SYNOPSIS -.BI "vimp [" "OPTION" "] [" "URI" "]" +.BI "vimb [" "OPTION" "] [" "URI" "]" .SH DESCRIPTION -.B vimp -is a webkit based web browser that behaves like the vimperator +.B vimb +is a webkit based web browser that behaves like the vimberator plugin for the firefox and usage paradigms from the great editor vim. The goal -of vimp is to build a completely keyboard-driven, efficient and pleasurable +of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience. .SH OPTIONS Mandatory arguments to long options are mandatory for short options too. .TP .BI "-e, --embed " "WINID" .I WINID -of an XEmbed-aware application, that vimp will use as its parent. +of an XEmbed-aware application, that vimb will use as its parent. .TP .B "-h, --help" Show help options. @@ -24,7 +24,7 @@ Show help options. .B "-v, --version" Print build and version information. .SH MODES -vimp is modal an has following main modes: +vimb is modal an has following main modes: .TP .B Normal Mode The default mode. Pressing Escape always enter normal mode. @@ -36,7 +36,7 @@ Used for editing text elements in a webpage. Follow links, form fields and frames via hints. .TP .B Command Mode -Execute vimp commands from the builtin inputbox (commandline). +Execute vimb commands from the builtin inputbox (commandline). .TP .B Search Mode Search for strings within the current displayed page. @@ -44,7 +44,7 @@ Search for strings within the current displayed page. .B Insert Mode Used for editing text elements in a webpage. .SH COMMANDS -Commands are a central part in vimp. They are used for nearly all things +Commands are a central part in vimb. They are used for nearly all things that could be done with this browser. Commands allow to set config variables, to assign keybindings and much more. Also the keybindings are only shortcut for the commands itself. @@ -299,41 +299,41 @@ Close the browser. .B source Toggle between normal view and source view for the current page. .SH FILES -.I $XDG_CONFIG_HOME/vimp/global.conf +.I $XDG_CONFIG_HOME/vimb/global.conf .RS Global configuration that are read on startup of application. This is the -right place to set keybindings and global style settings for vimp. +right place to set keybindings and global style settings for vimb. .RE -.I $XDG_CONFIG_HOME/vimp/local.conf +.I $XDG_CONFIG_HOME/vimb/local.conf .RS Local configuration that are process every time a new window is opened. This will be mainly used to apply webkit settings for the new browser window. .RE -.I $XDG_CONFIG_HOME/vimp/cookies +.I $XDG_CONFIG_HOME/vimb/cookies .RS Cookie store file. .RE -.I $XDG_CONFIG_HOME/vimp/closed +.I $XDG_CONFIG_HOME/vimb/closed .RS Holds the URI of the last closed browser window. .RE -.I $XDG_CONFIG_HOME/vimp/history +.I $XDG_CONFIG_HOME/vimb/history .RS This file holds the history of opened URIs. Note that this file is only written if last window of the browser is closed. .RE -.I $XDG_CONFIG_HOME/vimp/scripts.js +.I $XDG_CONFIG_HOME/vimb/scripts.js .RS This file can be used to run user scripts, that are injected into every paged that is opened. .RE -.I $XDG_CONFIG_HOME/vimp/style.css +.I $XDG_CONFIG_HOME/vimb/style.css .RS File for userdefined css styles. These file is used if the config variable 'stylesheet' is enabled. .RE .SH "REPORTING BUGS" Report bugs to the main project page on -.IR https://github.com/fanglingsu/vimp/issues . +.IR https://github.com/fanglingsu/vimb/issues . .SH AUTHOR Daniel Carl diff --git a/src/command.c b/src/command.c index 9cd7608..ce40dc8 100644 --- a/src/command.c +++ b/src/command.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/command.h b/src/command.h index c0062f7..6623b00 100644 --- a/src/command.h +++ b/src/command.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/completion.c b/src/completion.c index c5ae3dd..7854ce0 100644 --- a/src/completion.c +++ b/src/completion.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/completion.h b/src/completion.h index 5a18a2b..b312679 100644 --- a/src/completion.h +++ b/src/completion.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/config.h b/src/config.h index 9be97d0..648aa43 100644 --- a/src/config.h +++ b/src/config.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/dom.c b/src/dom.c index 260c506..a71d4cf 100644 --- a/src/dom.c +++ b/src/dom.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/dom.h b/src/dom.h index 20b1bae..27a7210 100644 --- a/src/dom.h +++ b/src/dom.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/hints.c b/src/hints.c index db89903..b823af3 100644 --- a/src/hints.c +++ b/src/hints.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * @@ -76,7 +76,7 @@ void hints_create(Client* c, const char* input, guint mode, const guint prefixLe } js = g_strdup_printf( - "%s = new VimpHints('%c', '%c', '%s', '%s', '%s', '%s', %d);", + "%s = new VimbHints('%c', '%c', '%s', '%s', '%s', '%s', %d);", HINT_VAR, type, usage, style->hint_bg, style->hint_bg_focus, diff --git a/src/hints.h b/src/hints.h index 14e682d..6f3c720 100644 --- a/src/hints.h +++ b/src/hints.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/hints.js b/src/hints.js index aeceea7..542a386 100644 --- a/src/hints.js +++ b/src/hints.js @@ -1,6 +1,6 @@ /* mode: l - links, i - images */ /* usage: O - open, T - open in new window, U - use source */ -function VimpHints(mode, usage, bg, bgf, fg, style, maxHints) +function VimbHints(mode, usage, bg, bgf, fg, style, maxHints) { "use strict"; var hClass = "__hint"; diff --git a/src/history.c b/src/history.c index d74dd7a..52175f7 100644 --- a/src/history.c +++ b/src/history.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/history.h b/src/history.h index ad48a3f..a80dd19 100644 --- a/src/history.h +++ b/src/history.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/keybind.c b/src/keybind.c index 2fbcba1..44229d4 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/keybind.h b/src/keybind.h index 7ca7b69..7d97d11 100644 --- a/src/keybind.h +++ b/src/keybind.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/main.c b/src/main.c index d762647..43be57d 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * @@ -721,16 +721,16 @@ static Client* vp_client_new(void) gui->window = gtk_plug_new(core.embed); } else { gui->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_wmclass(GTK_WINDOW(gui->window), "vimp", "Vimp"); - gtk_window_set_role(GTK_WINDOW(gui->window), "Vimp"); + gtk_window_set_wmclass(GTK_WINDOW(gui->window), "vimb", "Vimb"); + gtk_window_set_role(GTK_WINDOW(gui->window), "Vimb"); } GdkGeometry hints = {10, 10}; gtk_window_set_default_size(GTK_WINDOW(gui->window), 640, 480); - gtk_window_set_title(GTK_WINDOW(gui->window), "vimp"); + gtk_window_set_title(GTK_WINDOW(gui->window), "vimb"); gtk_window_set_geometry_hints(GTK_WINDOW(gui->window), NULL, &hints, GDK_HINT_MIN_SIZE); gtk_window_set_icon(GTK_WINDOW(gui->window), NULL); - gtk_widget_set_name(GTK_WIDGET(gui->window), "vimp"); + gtk_widget_set_name(GTK_WIDGET(gui->window), "vimb"); /* Create a browser instance */ gui->webview = WEBKIT_WEB_VIEW(webkit_web_view_new()); @@ -951,7 +951,7 @@ static gboolean vp_download_requested_cb(WebKitWebView* view, WebKitDownload* do const char* filename = webkit_download_get_suggested_filename(download); if (!filename) { - filename = "vimp_donwload"; + filename = "vimb_donwload"; } /* prepare the download target path */ diff --git a/src/main.h b/src/main.h index d6475e7..db2a5e7 100644 --- a/src/main.h +++ b/src/main.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/searchengine.c b/src/searchengine.c index 7d0fac7..0a267f9 100644 --- a/src/searchengine.c +++ b/src/searchengine.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/searchengine.h b/src/searchengine.h index c50b4be..d9079cc 100644 --- a/src/searchengine.h +++ b/src/searchengine.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/setting.c b/src/setting.c index dd03126..61e8c61 100644 --- a/src/setting.c +++ b/src/setting.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * @@ -81,7 +81,7 @@ static Setting default_settings[] = { {"seriffont", "serif-font-family", TYPE_CHAR, setting_webkit, {.s = "serif"}, FALSE}, {"spelllang", "spell-checking-languages", TYPE_CHAR, setting_webkit, {.s = NULL}, FALSE}, {NULL, "tab-key-cycles-through-elements", TYPE_BOOLEAN, setting_webkit, {.i = 1}, FALSE}, - {"useragent", "user-agent", TYPE_CHAR, setting_webkit, {.s = "vimp/" VERSION " (X11; Linux i686) AppleWebKit/535.22+ Compatible (Safari)"}, FALSE}, + {"useragent", "user-agent", TYPE_CHAR, setting_webkit, {.s = "vimb/" VERSION " (X11; Linux i686) AppleWebKit/535.22+ Compatible (Safari)"}, FALSE}, {"zoomstep", "zoom-step", TYPE_FLOAT, setting_webkit, {.i = 100000}, FALSE}, /* internal variables */ @@ -119,8 +119,8 @@ static Setting default_settings[] = { {NULL, "hint-fg", TYPE_CHAR, setting_hint_style, {.s = "#000"}, TRUE}, {NULL, "hint-style", TYPE_CHAR, setting_hint_style, {.s = "position:absolute;z-index:100000;font-family:monospace;font-weight:bold;font-size:10px;color:#000;background-color:#fff;margin:0;padding:0px 1px;border:1px solid #444;opacity:0.7;"}, TRUE}, {NULL, "ca-bundle", TYPE_CHAR, setting_ca_bundle, {.s = "/etc/ssl/certs/ca-certificates.crt"}, TRUE}, - {NULL, "home-page", TYPE_CHAR, setting_home_page, {.s = "https://github.com/fanglingsu/vimp"}, TRUE}, - {NULL, "download-path", TYPE_CHAR, setting_download_path, {.s = "/tmp/vimp"}, TRUE}, + {NULL, "home-page", TYPE_CHAR, setting_home_page, {.s = "https://github.com/fanglingsu/vimb"}, TRUE}, + {NULL, "download-path", TYPE_CHAR, setting_download_path, {.s = "/tmp/vimb"}, TRUE}, {NULL, "history-max-items", TYPE_INTEGER, setting_history_max_items, {.i = 500}, TRUE}, }; diff --git a/src/setting.h b/src/setting.h index 713c8aa..618f818 100644 --- a/src/setting.h +++ b/src/setting.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * diff --git a/src/util.c b/src/util.c index 9a30e14..400d000 100644 --- a/src/util.c +++ b/src/util.c @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * @@ -23,7 +23,7 @@ char* util_get_config_dir(void) { - char *path = g_build_filename(g_get_user_config_dir(), "vimp", NULL); + char *path = g_build_filename(g_get_user_config_dir(), "vimb", NULL); util_create_dir_if_not_exists(path); return path; @@ -31,7 +31,7 @@ char* util_get_config_dir(void) char* util_get_cache_dir(void) { - char *path = g_build_filename(g_get_user_cache_dir(), "vimp", NULL); + char *path = g_build_filename(g_get_user_cache_dir(), "vimb", NULL); util_create_dir_if_not_exists(path); return path; diff --git a/src/util.h b/src/util.h index d69a532..5a52031 100644 --- a/src/util.h +++ b/src/util.h @@ -1,5 +1,5 @@ /** - * vimp - a webkit based vim like browser. + * vimb - a webkit based vim like browser. * * Copyright (C) 2012-2013 Daniel Carl * -- 2.20.1