fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.35k stars 100 forks source link

Socket support (--socket, -s) #344

Open rti opened 7 years ago

rti commented 7 years ago

Socket support --socket,-s and --dump,-d option to print the actual used socket path to stdout

Implemented in vimb2 already. The code [1] and [2] can be used as a reference.

[1] https://github.com/fanglingsu/vimb/blob/2.12/src/main.c#L1915-L1926 [2] https://github.com/fanglingsu/vimb/blob/2.12/src/io.c

fanglingsu commented 7 years ago

Before we start the socket feature, we should make sure the key processing works right #247. At the time the key events are transalted into internal 1 or 3 Byte char sequences that are given to the current active mode. But by the translation into multiple chars that are given one by one to the mode we can't get the original key from them. This bug also exist in webkit1 vimb where the formfiller did not work properly in case the form data contained utf-8 chars which where translated into 3 Byte char sequences.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.

javigazi commented 5 years ago

@fanglingsu very like to see this feature.

herrsimon commented 4 years ago

me too!

fanglingsu commented 4 years ago

Independent from the lagging utf8 support in the current key mapping logic we could add socket support by restricting this to run only ex commands. This limits the use case but the normal mode commands could still be triggered by :normal ....