Modify ↓
#13831 closed enhancement (fixed)
Pasted URLs in TracLinks syntax
Reported by: | anonymous | Owned by: | lucid |
---|---|---|---|
Priority: | normal | Component: | TextareaKeyBindingsPlugin |
Severity: | normal | Keywords: | patch |
Cc: | Trac Release: |
Description
When a user copies a URL, it would be convenient to convert it to TracLinks syntax automatically if applicable.
For example when https://trac-hacks.org/ticket/13737
is pasted, the plugin could hook into the Javascript onpaste-event and transform the text to #13737
.
- Bonus: Support special URL parameter syntax like
@:
etc.- For example
https://trac-hacks.org/browser/textareakeybindingsplugin/trunk/textareakeybindings/web_ui.py?rev=17665&marks=15#L2
tosource:textareakeybindingsplugin/trunk/textareakeybindings/web_ui.py@17665:15#L2
- Bonus: Add the current revision automatically if no revision was provided?
- For example
- Bonus: Support for InterWiki / InterTrac
- for example
https://trac.edgewall.org/wiki/TracLinks
tot:TracLinks
.
- for example
- Bonus: Support custom transformations (
C:\Source\Dir\file.ext
->source:Dir/file.exe
)
Attachments (0)
Change History (6)
comment:1 Changed 4 years ago by
comment:2 Changed 4 years ago by
Keywords: | patch added |
---|
comment:3 Changed 4 years ago by
|| realm == ''
I left this in the diff by mistake. Other simple realms (that only require the same handling as wiki:
) could be added there.
Note: See
TracTickets for help on using
tickets.
textareakeybindings/htdocs/js/textareakeybindings.js
textareakeybindings/web_ui.py