summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-10-25Fix some code indentation.Daniel Carl
2018-10-25Fix possible memory leak #361.Daniel Carl
2018-10-25Always pass NUL-terminated text to command_spawn_editor()Leonardo Taccari
It seems that there is no any guarantee that webkit_web_resource_get_data_finish() return data that is NUL-terminated.
2018-10-25Avoid possible strlen() on NULL contentLeonardo Taccari
2018-10-25Add command_spawn_editor() and implement normal_view_source()Leonardo Taccari
- Add a command_spawn_editor() to asynchronously spawn editor - Adjust input_editor_formfiller() to use command_spawn_editor() - Add support to view the source of the current page via the editor (`gf' command).
2018-10-15Fixed wrong return type for util_file_set_content().Daniel Carl
2018-10-15Document a subtlety of util_parse_expansion() behaviour.Leonardo Taccari
Single ~ uses g_get_home_dir() that honor HOME environment variable. However, ~user always consult the passwd file.
2018-10-15Add support for marks, based on vimb-2.12Leonardo Taccari
- Introduce a scroll_top field in State, similar to scroll_percent but in pixel - Adjust the webextension to communicate and update scroll_top - Implement normal_map(), mostly based on vimb-2.12
2018-10-12Always use curly braces for if and else.Daniel Carl
2018-10-12Use stat(2) to retrieve the file permissions modeLeonardo Taccari
Remove the mode arguments from util_file_prepend_line(), util_file_pop_line() and util_file_set_content(). Both util_file_prepend_line() and util_file_pop_line() just calls util_file_set_content() so stat(2) can be used there and if it fails the 0600 is used as a fallback. Thanks to @fanglingsu for reviews and suggestions!
2018-10-11Replace g_file_set_contents().Daniel Carl
The g_file_set_contents performs atomic write to file by creating a temporary file, writing to it and renaming it. But during the creation of the temporary file, the mode is set hard to 0666. So our files will silently always change their mode in case we processed their content. This patch adds the util_file_set_content() function which follows the same approach, but allows to set the mode that is used to create the temporary file. So the file is created with the right permissions.
2018-10-10Add a mode (in chmod(2) context) argument to util_get_filepath()Leonardo Taccari
Add a mode argument to util_get_filepath() in order to adjust file permissions when creating file. Adjust all util_get_filepath() call and file permissions making them readable and writable only by the user.
2018-10-10Show warning if peer dbus connection does not provide credentials #438.Daniel Carl
2018-10-09Remove trialing tabs.Daniel Carl
2018-10-08Use glib example code for dbus auth observer #438.Daniel Carl
2018-10-08Setup dbus server before the webextension #438.Daniel Carl
Not sure if this changes anything, but it's a good choice to setup the server before telling webkit where to look for webextensions.
2018-09-28Remove also shared object on make clean.Daniel Carl
2018-09-28Replace tabs by spaces.Daniel Carl
2018-08-27Check webextension at startup by default.Daniel Carl
Also fail with error if webextension could not be read.
2018-08-06Update hints also on scrolling within frames.Daniel Carl
2018-08-06Fix wrong hint label in case of scrolling.Daniel Carl
Also moved style for hintcontainer from user style to hints.js because there is no styling set at the moment the user should change.
2018-08-06Added webkit setting for file uri handling.Daniel Carl
2018-08-04Fix wrong hint label position on xkcd.com.Daniel Carl
On some pages which set the body to fixed position the hint labels where placed far away from the hinted element. This patch fixes this issue by setting the position of the label to fixed instead of absolute. This fixes #506.
2018-07-31Convert focus_element_by_id.js to CVirgil Dupras
2018-07-18Get page size from body as well as the documentElement #501.Daniel Carl
2018-07-18Improve scripts change detection in MakefileVirgil Dupras
When changing a script in `src/scripts`, `make` would need to be invoked twice for a proper build: once for `scripts.h` and once for the `.o` files depending on it. This commit fixes this by integrating `src/scripts/Makefile` into `src/Makefile` to allow for proper dependency update detection.
2018-06-27Use travis-ci for testing.Daniel Carl
2018-06-18Makefile: add dependency on scripts.h to input.oPatrick Steinhardt
While "input.c" includes "scripts/scripts.h", which is generated dynamically by the build system, the Makefile does not state a dependency of "input.c" on "scripts/scripts.h". Add the dependency to fix broken builds.
2018-06-18Fixed -Werror=format-security issue.Daniel Carl
This fixes #495.
2018-06-16Fix missing string.h includeYutao Yuan
2018-06-14Make function static.Daniel Carl
This is only use within main.c so we can make it static and leaf the vb_ prefix.
2018-06-14Merge branch 'fix-url-detection' of https://github.com/GKFX/vimb.Daniel Carl
2018-06-14Added tests for shortcuts #357.Daniel Carl
2018-06-13Make URL detection more robustGeorge Bateman
2018-06-14Do not damage utf8 string on escape.Daniel Carl
This fixes #492.
2018-06-13Added first test for the util functions #357.Daniel Carl
2018-06-13Fixed indentation.Daniel Carl
2018-06-12Detect localhost and IPv6 as valid URLs. Fixes #478.George Bateman
2018-06-12Allow user to hide and show the titlebar on demand. Fixes #439.George Bateman
2018-06-11Allow to react on permission-requests.Daniel Carl
2018-06-02Remove not really needed variable.Daniel Carl
2018-06-02Fixed possible memory leak in case of errors.Daniel Carl
2018-06-02Reuse success flag.Daniel Carl
2018-06-02Fixed some code style issues.Daniel Carl
2018-06-02Merge branch 'master' of https://github.com/svensp/vimbDaniel Carl
2018-06-01moved id to its own variable to adher to IPO modelSven Speckmaier
2018-05-30multi line javascript used from scripts/scripts.hSven Speckmaier
2018-05-29Use vimbhint attribute also for styling.Daniel Carl
2018-05-29use vimb_editor_map when no id is presentSven Speckmaier
2018-05-28assert and free data->element_id in editor returnSven Speckmaier