[PATCH] auto-completing URLs on Ctrl-Enter
Tony Sideris
tonys111 at comcast.net
Thu Feb 2 02:31:03 GMT 2006
On Wednesday 01 February 2006 4:36, Thiago Macieira wrote:
>
> That's an interesting feature. However, I'd like to ask you to modify your
> code to do as follows:
>
> 1) respect the file's coding styles (indentation is 4 spaces)
>
> 2) make the list of suffixes configurable (don't remove the hardcoded
> default ones, though). There's no need for GUI, but reading the data from
> a .desktop. That way, translators could set their locale's default
> suffixes. For instance, I don't have much use for ".de", but I do about
> ".com.br".
Ok, here's another attempt at it...
- I've fixed the indentation (sorry about that, my tab-size is 4 so it looked
right ;)
- Changed it to read extra suffixes from a .desktop file (.com, .org, .net are
the hardcoded defaults, the extras are read in from .desktop and appended)
- And changed the key command to Ctrl-Space as Jonas suggested (seemed more
intuitive, also, when i tried Shift-Enter the 1st attempt gets swallowed by
the dropdown-completion box).
NOTE: I couldn't quite test language-specific suffixes properly because i only
have US English installed at the moment, but it is reading in the default
extra URLs (currently .edu and .gov). They're read in from
"konqueror/url_suffixes.desktop" in the "data" category, "Suffixes" group,
"Name" entry.
Thanks,
-Tony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konq_combo-autowrap.2.diff
Type: text/x-diff
Size: 2837 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20060201/f3920e79/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: url_suffixes.desktop
Type: application/x-desktop
Size: 27 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20060201/f3920e79/attachment.bin>
More information about the kfm-devel
mailing list