shrface icon indicating copy to clipboard operation
shrface copied to clipboard

org-cycle and org-shifttab stop working after updating

Open ram535 opened this issue 5 years ago • 8 comments

It was working before updating.

My config:

(use-package nov
  :init
  (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
  :general
  (:states 'normal
           :keymaps 'nov-mode-map
           "TAB" 'org-cycle
           "C-<tab>" 'org-shifttab))

(use-package shrface
  :after shr
  :straight (shrface :type git :host github :repo "chenyanming/shrface")
  :custom
  (shrface-paragraph-indentation 2)
  (shrface-paragraph-fill-column 80)
  :config
   (shrface-basic)
    (shrface-trial)
  (with-eval-after-load 'nov 
    (setq nov-shr-rendering-functions (append nov-shr-rendering-functions shr-external-rendering-functions))))

ram535 avatar Apr 20 '20 04:04 ram535

@ram535 Sorry for the confusion. Because start from 1.8, a minor mode was added: shrface-mode, you need to enable the shrface-mode for each package. Add one more line in your config:

(use-package shrface
      :after shr
      ;; :straight (shrface :type git :host github :repo "chenyanming/shrface")
      :custom
      (shrface-paragraph-indentation 2)
      (shrface-paragraph-fill-column 80)
      :config
      (shrface-basic)
      (shrface-trial)
      (with-eval-after-load 'nov
        (setq nov-shr-rendering-functions (append nov-shr-rendering-functions shr-external-rendering-functions))
        (add-hook 'nov-mode-hook 'shrface-mode)))

chenyanming avatar Apr 20 '20 13:04 chenyanming

@ram535 Sorry for the confusion. Because start from 1.8, a minor mode was added: shrface-mode, you need to enable the shrface-mode for each package. Add one more line in your config:

(use-package shrface
      :after shr
      ;; :straight (shrface :type git :host github :repo "chenyanming/shrface")
      :custom
      (shrface-paragraph-indentation 2)
      (shrface-paragraph-fill-column 80)
      :config
      (shrface-basic)
      (shrface-trial)
      (with-eval-after-load 'nov
        (setq nov-shr-rendering-functions (append nov-shr-rendering-functions shr-external-rendering-functions))
        (add-hook 'nov-mode-hook 'shrface-mode)))

shrface-mode can be enable/disable on the fly through M-x shrface-mode. And also, shrface-mode-hook was added for more customization options..

chenyanming avatar Apr 20 '20 13:04 chenyanming

I see thanks. But after adding (add-hook 'nov-mode-hook 'shrface-mode). org-shifttab works. org-cycle do not work.

ram535 avatar Apr 20 '20 16:04 ram535

org-cycle will call org-children which can not work perfectly, you can use outline-cycle instead.

chenyanming avatar Apr 20 '20 16:04 chenyanming

I see thanks. But after adding (add-hook 'nov-mode-hook 'shrface-mode). org-shifttab works. org-cycle do not work.

But you may need to install outline-magic by yourself. Link could be found in README.

chenyanming avatar Apr 20 '20 16:04 chenyanming

I see. I just would like to mention org-cycle was working before the update. I will look into outline-magic solution. Thanks

ram535 avatar Apr 20 '20 17:04 ram535

I see. I just would like to mention org-cycle was working before the update. I will look into outline-magic solution. Thanks

Oh, if org-cycle is working before the update, it should work after the update, since I did not change the logic of outline features, just introduce shrface-mode, shrface-basic and shrface-trial, let me reopen this ticket and keep watching.

Since outline-cycle is a solution of helping fix the subtrees can not show issue. org-cycle should work on show overview and show all, but sometimes can not show subtrees.

chenyanming avatar Apr 20 '20 22:04 chenyanming

Feel free to close this issue when you see appropriate . I installed outline-magic which allow me to not need org-cycle.

ram535 avatar Apr 21 '20 05:04 ram535