liuyinz / binky.el Goto Github PK
View Code? Open in Web Editor NEWA package helping you jumping between buffers and files in Emacs
License: GNU General Public License v3.0
A package helping you jumping between buffers and files in Emacs
License: GNU General Public License v3.0
Small thing, but when binky-overwrite
is true, setting a mark always results in the message "Mark is overwritten", even if the mark did not exist before.
Great package, thanks.
see lassik/emacs-format-all-the-code#220
and use https://github.com/radian-software/apheleia instead
Hi,
I've recently discovered this package and I'm enjoying it, but there are a couple of missing features I'd like.
The first one is indicators in the fringe, that I've seen it's on your TODO list.
The second one is the capacity to jump to next / previous marker in current buffer with no need to open the preview and remember the character associated with the mark.
I've written this feature. Possibly var and commands comments should be improved.
What do you think?
(defcustom binky-jump-cycle t
"If non-nil, cycle to first mark if not next, or last mark if not previous."
:type 'boolean
:group 'binky)
(defun binky-jump-to-next-marker-in-buffer ()
"Jump to next marker in current buffer. If no more, jump to first."
(interactive)
(if-let* ((buf (current-buffer))
(pt (point))
(mks (seq-sort #'(lambda (b1 b2) (< (marker-position b1) (marker-position b2)))
(seq-keep #'(lambda (b) (and (eq buf (marker-buffer (cdr b))) (cdr b)))
(binky--manual-preview))))
(mk (seq-find #'(lambda (mk) (> (marker-position mk) pt)) mks)))
(goto-char mk)
(when (and mks binky-jump-cycle)
(goto-char (car mks)))))
(defun binky-jump-to-prev-marker-in-buffer ()
"Jump to previous marker in current buffer. If no more, jump to last."
(interactive)
(if-let* ((buf (current-buffer))
(pt (point))
(mks (seq-sort #'(lambda (b1 b2) (> (marker-position b1) (marker-position b2)))
(seq-keep #'(lambda (b) (and (eq buf (marker-buffer (cdr b))) (cdr b)))
(binky--manual-preview))))
(mk (seq-find #'(lambda (mk) (< (marker-position mk) pt)) mks)))
(goto-char mk)
(when (and mks binky-jump-cycle)
(goto-char (car mks)))))
Enable marks in buffer available between sessions just like vim marks does.
Is there any conflict between binky-margin-mode and linum-mode?
While linum-mode is enabled binky margin symbols are not displayed.
Hi again,
I've written an implementation of fringe indicator support. Attached patch against master.
It has been simpler than I thought ;-).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.