dogears.el
dogears.el copied to clipboard
Dogears.el's behavior differs from Web Browsers and IDEs
Dogears' backward / forward behavior is different from browsers and other IDEs.
For example, set (setq dogears-position-delta 50)
in init.el and put the following text in *scratch*.
Conferences ....................................................................
Legal environment ....................................................................
See also ....................................................................
Notes ....................................................................
References ....................................................................
Further reading ....................................................................
External links ....................................................................
Check the behavior:
- Put the cursor at "External links" and M-x dogears-remember
- Put the cursor at "Further reading" and M-x dogears-remember
- Put the cursor at "References" and M-x dogears-remember
- M-x dogears-back, the cursor will jump to "Further reading"
- Put the cursor at "Conferences" and M-x dogears-remember
- M-x dogears-back, the cursor will jump to "Further reading" (GOOD)
- M-x dogears-forward, the cursor will jump to "References" (BAD)
- M-x dogears-forward, the cursor will jump to "Conferences" (GOOD, but should skip step 7)
Why the step 7 is bad? Because it is inconsistent with Web Browsers. You can try the same steps in https://en.wikipedia.org/wiki/Wiki via Firefox.
- Click "External links" link
- Click "Further reading" link
- Click "References" link
- Click "Go back" button, the web page jump to "Further reading"
- Click "Conferences" link
- Click "Go back" button, the web page jump to "Further reading" (GOOD)
- Click "Go forward" button, the web page jump to "Conferences" (GOOD)
I also tried some IDEs (e.g. IntelliJ IDEA), they follow Firefox's behavior.
Thanks to the clean code of dogears.el, adapting it to match the behavior of Web Browsers might be not difficult. For example, dogears-remember
can delete old places before dogears-position
.
Do you think it is necessary for dogears.el to use the Web Browser behavior? Or be an option?
Just for discussion.