<commit_before>(require 'bm)

(setq bm-highlight-style 'bm-highlight-only-fringe)

(global-set-key (kbd "<C-f2>") 'bm-toggle)
(global-set-key (kbd "C-S-SPC") 'bm-toggle)
(global-set-key (kbd "<f2>") 'bm-next)
(global-set-key (kbd "<S-f2>") 'bm-previous)
(global-set-key (kbd "<C-S-f2>") 'bm-remove-all-current-buffer)
(global-set-key (kbd "<left-fringe> <mouse-5>") 'bm-next-mouse)
(global-set-key (kbd "<left-fringe> <mouse-4>") 'bm-previous-mouse)
(global-set-key (kbd "<left-fringe> <mouse-1>") 'bm-toggle-mouse)
<commit_msg>Better keybindings and visuals for bookmarks (when in console)<commit_after>(require 'bm)

(setq bm-highlight-style
      (if window-system
          'bm-highlight-only-fringe
        'bm-highlight-only-line))

(defvar my-bm-next-keymap
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "n") 'bm-next)
    map))

(defun my-bm-next ()
  (interactive)
  (message "Hit 'n' to goto the next bookmark")
  (bm-next)
  (set-temporary-overlay-map my-bm-next-keymap t))

(global-set-key (kbd "<C-f2>") 'bm-toggle)
(global-set-key (kbd "C-S-SPC") 'bm-toggle)
(global-set-key (kbd "C-c m") 'bm-toggle)
(global-set-key (kbd "C-c n") 'my-bm-next)
(global-set-key (kbd "<f2>") 'bm-next)
(global-set-key (kbd "<S-f2>") 'bm-previous)
(global-set-key (kbd "<C-S-f2>") 'bm-remove-all-current-buffer)
(global-set-key (kbd "<left-fringe> <mouse-5>") 'bm-next-mouse)
(global-set-key (kbd "<left-fringe> <mouse-4>") 'bm-previous-mouse)
(global-set-key (kbd "<left-fringe> <mouse-1>") 'bm-toggle-mouse)

{'fraction_non_alphanumeric': 0.2271231073074391, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 4.066666666666666, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4000508', 'n_tokens_mistral': 662, 'n_tokens_neox': 668, 'n_words': 127}