profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Alexander-Miller/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

Alexander-Miller/cfrs 47

Child Frame Read String

Alexander-Miller/hanabi-server 4

A websocket server for the Hanabi card game.

Alexander-Miller/forest-simulation 1

Reddit Daily Programmer #165 [Hard]

Alexander-Miller/melpa 1

Scripts for building Emacs packages from Version Control

Alexander-Miller/button-lock 0

clickable text in Emacs

startedAlexander-Miller/treemacs

started time in 13 hours

startedAlexander-Miller/treemacs

started time in 18 hours

startedAlexander-Miller/treemacs

started time in 2 days

issue openedAlexander-Miller/treemacs

treemacs icons load only on installation and then disappear by next emacs initialization

Hi, I have used the boilerplate treemacs config from the readme.md file in this repo. Upon installation and launching treemacs, the icons look okay. However after restarting emacs, the icons are gone. Why would that be happening? Screenshot from 2021-06-16 21-28-28

created time in 2 days

startedAlexander-Miller/company-shell

started time in 2 days

startedAlexander-Miller/treemacs

started time in 5 days

startedAlexander-Miller/treemacs

started time in 5 days

startedAlexander-Miller/treemacs

started time in 5 days

startedAlexander-Miller/treemacs

started time in 8 days

release kubernetes-el/kubernetes-el

0.15.0

released time in 8 days

issue closedAlexander-Miller/treemacs

Can't view the cursor when renaming a node

Hi! First of all, thanks a lot for your awesome work. I use it daily and it helps me a lot :)

Second of all, I'm still a noob in ELisp. Sorry if this is completely wrong... I'll update the issue with what I can if given proper directions though!

Can't view the cursor when renaming a node

In the past treemacs had a different UI for renaming a node. After it became "inline" it has been hard to use it because I can't see the cursor and there are plenty of times where I just want to correct a typo. Here is a screen shot about current UI for my configuration.

image

When I press C-b or C-f it does not show. I think this is a bug but not 100% sure :) If there is anything I might add here just please let me know.

Thanks once again!

closed time in 8 days

victorolinasc

issue commentAlexander-Miller/treemacs

Can't view the cursor when renaming a node

Sorry I haven't been active here...

Just updated, restarted the daemon and it worked! Once again thanks for you work!

Cheers! I'll close the issue

victorolinasc

comment created time in 8 days

startedAlexander-Miller/treemacs

started time in 9 days

issue commentAlexander-Miller/treemacs

Can't view the cursor when renaming a node

I just upgraded through melpa and it works perfectly, many thanks!

victorolinasc

comment created time in 9 days

startedAlexander-Miller/treemacs

started time in 10 days

startedAlexander-Miller/treemacs

started time in 10 days

startedAlexander-Miller/treemacs

started time in 10 days

issue commentAlexander-Miller/treemacs

treemacs--process-file-events producing errors

The error is still there but with newer treemacs it looks different. The actual functionality of emacs and treemacs looks OK but the issue is that if I turn debug on error on it catches these.

backtrace is

Debugger entered--Lisp error: (invalid-function treemacs-without-recenter) treemacs-without-recenter(nil) treemacs--recursive-refresh-descent(#s(treemacs-dom-node :key "/Users/mark/Sy..." :parent nil :children ... :reentry-nodes ... :position #<marker (moves after insertion) at 3 in *Treemacs-Scoped-Buffer-#<frame Emacs@mini20.local 0x1349e9a00>*> :refresh-flag nil :collapse-keys nil) #s(treemacs-project :name "Aquamacs Emacs..." :path "/Users/mark/Sy..." :path-status local-readable :is-disabled? nil)) treemacs--process-file-events() apply(treemacs--process-file-events nil) timer-event-handler([t 24767 18108 725587 nil treemacs--process-file-events nil nil 0])

A problem is that I can't see treemacs-without-recenter being called in treemacs--recursive-refresh-descent so I can't inspect more. My emacs knowledge is lacking - is this due to a lot of functions being define-inline and don't show up on the stack, if so is there an easy way to convert thenm to plain defuns so I can help debug?

bestlem

comment created time in 11 days

startedAlexander-Miller/treemacs

started time in 11 days

issue commentAlexander-Miller/treemacs

Can't view the cursor when renaming a node

Hi, it seems that I was confused in my previous analysis.. you are right the problem is not the selected frame.

It seems that in my case, cursor-type is nil, rather than t, when this line runs:

https://github.com/Alexander-Miller/cfrs/blob/e16a01012545d378150432fa10684a2a7d1cc2d1/cfrs.el#L98

which results in ct being nil, instead of the value of (frame-parameter (selected-frame) 'cursor-type).

So if I replace the above line by:

(let ((ct (if (or (eq t cursor-type) (eq nil cursor-type))

it seems to fix the problem (at least in my context).

victorolinasc

comment created time in 11 days

startedAlexander-Miller/treemacs

started time in 12 days

issue commentAlexander-Miller/treemacs

open external not working

Always sorry to be a necromancer but I've found a workaround for myself and since the link to this issue pops up as the first result in a Google search for "treemacs external open" I think that maybe someone else will also benefit from this.

Basing on treemacs-20210524.1338:

index 527eff5..ddde4a3 100644
--- a/treemacs-interface.el.bak
+++ b/treemacs-interface.el
@@ -370,7 +370,7 @@ Treemacs knows how to open files on linux, windows and macos."
          (shell-command (format "open \"%s\"" path)))
         ('gnu/linux
          (let ((process-connection-type nil))
-           (start-process "" nil "xdg-open" path)))
+           (start-process "" nil "sh" "-c" "xdg-open $0 ; sleep 1" path)))
         (_ (treemacs-pulse-on-failure "Don't know how to open files on %s."
              (propertize (symbol-name system-type) 'face 'font-lock-string-face))))
     (treemacs-pulse-on-failure "Nothing to open here.")))

Unfortunately I can't provide an explanation for this solution other than a guess that there is a race-condition where Emacs kills the spawned processes while they're still starting up. I gained the idea from this StackOverflow answer: https://askubuntu.com/a/1124455

My OS is Kubuntu 20.04.

wnkw

comment created time in 13 days

startedAlexander-Miller/treemacs

started time in 13 days

issue commentAlexander-Miller/treemacs

Current project is already shown. While actually it is not shown.

Thanks for the efforts. Normally when will the master arrive at melpa stable?

introom

comment created time in 14 days

startedAlexander-Miller/treemacs

started time in 15 days

startedAlexander-Miller/treemacs

started time in 15 days

issue openedAlexander-Miller/treemacs

Current project is already shown. While actually it is not shown.

Phenomenon: treemacs-display-current-project-exclusively won't show the treemacs side window. image

Should we call the command treemacs first and then call treemacs-display-current-project-exclusively ?

created time in 16 days

issue commentAlexander-Miller/treemacs

Can't view the cursor when renaming a node

So no the color is not the problem, apparently. Ok so please bear with me as my Elisp is quite.. rudimentary.

It seems that the first time your new cfrs--determine-cursor-type function is called, there are only 1 frame, and the second time, 2 frames (the additional one being the widget just created by cfrs I assume).

And although I don't understand exactly how it works, it seems that there's some confusion, in this function, about which frame exactly is the (selected-frame), in both scenarios (which is the frame from which you extract the cursor-type property).

So after a lot of experimentation, the only logic making it work for me, in my particular context, is to do this:

(defun cfrs--determine-cursor-type ()
  (message "%s frames at the moment the function is called, getting the cursor-type from the last.." (length (frame-list)))
  (frame-parameter (car (last (frame-list))) 'cursor-type))

I suspect it's probably not going to be the final solution, as it's probably not general enough, or too fragile or whatever, but perhaps it will help you find a more solid one.

victorolinasc

comment created time in 17 days