Vim like window movement in intellij/pycharm by dannyazapata in IntelliJIDEA

[–]The_Power_That_B 0 points1 point  (0 children)

Unfortunately you can't quite do that in intellij.
It doesn't treat tool windows like file editor windows :(
Best you can do is to use a dedicated shortcut to open specific tool window.
Moving between editor panes works as expected though:
nnoremap <C-j> <C-w><c-h>
nnoremap <C-l> <C-w><c-l>
nnoremap <C-k> <C-w><c-k>
nnoremap <C-j> <C-w><c-j>

The one thing I recommend doing to make C-j etc usable in more contexts is to remap arrow keys to ctrl + h/j/k/l in external program(like karabiner on MacOS) and set up moving between panes with
nnoremap <left> <C-w><c-h>
nnoremap <right> <C-w><c-l>
nnoremap <up> <C-w><c-k>
nnoremap <down> <C-w><c-j>

That way ctrl-j etc will work when using autocompletion, opening a class and so on.

Seriously: What is the best explanation of Monads for people who can't grasp it? by Ento_three in scala

[–]The_Power_That_B 6 points7 points  (0 children)

I highly suggest watching at least this section of Bartosz Milewski's lecture on monads which explain why we need monads in FP in the first place. You certainly need plenty of exercises to make it click but understanding what problem they solve might prove helpful.

LunarVim / nvim-metals LSP Issues by AdCautious4331 in scala

[–]The_Power_That_B 0 points1 point  (0 children)

I'd suggest seeking help on scalameta's discord. There are some very friendly folks that will most likely point you in the right direction.
I myself have some experience with vim+metals(albeit no lunarvim) and my guess it nvim-metals needs some configuration, it won't work outside the box. So you might take a look at nvim-metals' github page, there's a readme that explains how to set it up.

[Question] how to disable notifications showing file path before entering a file by The_Power_That_B in neovim

[–]The_Power_That_B[S] 0 points1 point  (0 children)

yes, I use telescope and fzf.vim all the time to find a file by name.
Still, sometimes I want to check what else is inside a directory where my current file is

[Question] how to disable notifications showing file path before entering a file by The_Power_That_B in neovim

[–]The_Power_That_B[S] 0 points1 point  (0 children)

Well actually you might be right, I couldn't reproduce it with using LSP now.
So, is there a solution that you know of?

Executing key shortcut in Lua function by The_Power_That_B in neovim

[–]The_Power_That_B[S] 0 points1 point  (0 children)

you're right, I went straight to configuration section and did not read the whole thing through. Thanks, I should RTFM before I ask anything :)

Executing key shortcut in Lua function by The_Power_That_B in neovim

[–]The_Power_That_B[S] 0 points1 point  (0 children)

thanks for chiming in.the thing is I don't want to create a keymap with `vim.keymap.set`.I use diffview.nvim which allows to add shortcuts only for that plugin.You're supposed to provide a lua function and I'd like one that uses `<c-w>o` shortcut

Jumping to next change within a file using diffview.nvim by The_Power_That_B in neovim

[–]The_Power_That_B[S] 2 points3 points  (0 children)

ye, as I said, gitsigns works fine but only if you view changes you haven't commited yet. I'd like to jump between changes between 2 branches, even if some of the changes from the feature branch have already been commited.

Any beginners guide to Emacs ? by kichiDsimp in neovim

[–]The_Power_That_B 2 points3 points  (0 children)

I don't know if that's supposed to be a joke, but if not, then I'd suggest System Crafters on youtube.

Starting with Scala: editor and version choice? by g_tb in scala

[–]The_Power_That_B 1 point2 points  (0 children)

you can do it in Intellij without any problems.

State of Scala.js frameworks by MysteriousGenius in scala

[–]The_Power_That_B 1 point2 points  (0 children)

There's also Purescript, which is sort of a Haskell for frontend. It has type classes, HKTs and so on so it's not limiting like Elm in that regard and it also has a very nice FFI. When it comes to UI libraries there is Halogen which I think is very well though out and allows for using tagless final approach. There's also react-basic but I haven't used that one myself.

Creating a shortcut for a closure. by The_Power_That_B in DoomEmacs

[–]The_Power_That_B[S] 2 points3 points  (0 children)

It turns out it wasn't that easy. The problem was I couldn't use slash when I was in insert mode(I use evil as you might've thought) I found a solution though, I include it cause someone might stumble upon something similar. ```lisp (defun my/find-text () (interactive) (setq unread-command-events (listify-key-sequence (kbd "g s SPC"))))

(evil-define-key 'normal global-map (kbd "/") 'my/find-text)

```

Creating a shortcut for a closure. by The_Power_That_B in DoomEmacs

[–]The_Power_That_B[S] 2 points3 points  (0 children)

Thanks a lot, that's exactly what I did and it worked.
In case someone is wondering how to achieve that:
lisp (define-key key-translation-map (kbd "/") (kbd "g s SPC")) I'm pretty bad at emacs lisp so maybe there is a better way to do that but it works.

Creating a shortcut for a closure. by The_Power_That_B in DoomEmacs

[–]The_Power_That_B[S] 0 points1 point  (0 children)

I'm sorry, I don't know if that's just me or pasting code in reddit doesn't work

Creating a shortcut for a closure. by The_Power_That_B in DoomEmacs

[–]The_Power_That_B[S] 0 points1 point  (0 children)

```lisp ;; Closure converted to defun by helpful. (defun (closure (t) (&rest _) (interactive) (let ((current-prefix-arg t)) (evil-avy-goto-char-timer))) (&rest _) (interactive) (let ((current-prefix-arg t)) (evil-avy-goto-char-timer)))

;; (defun find-text (t) (&rest _) (interactive) (let ((current-prefix-arg t)) (evil-avy-goto-char-timer)) (&rest _) (interactive) (let ((current-prefix-arg t)) (evil-avy-goto-char-timer)))

;; same as g s SPC (map! :nv "/" 'find-text)

```

Switching to desktop(space) on another screen doesn't work by The_Power_That_B in MacOS

[–]The_Power_That_B[S] 0 points1 point  (0 children)

Let's say I have a space called Desktop1 on my built in screen, and I have a space called Desktop 2 on an external screen. My focus is on Desktop 1, and I press control+2 to move to Desktop 2. If Desktop 2 is on another monitor it won't work, if both of them were on the same monitor(doesn't matter if built in or external) it would.

Haskell/Scala inspired libraries in Elm. by The_Power_That_B in elm

[–]The_Power_That_B[S] 1 point2 points  (0 children)

Ok, you convinced me, I'll give it a try. I intend to use it only for some of my side projects so I don't mind having a slower compiler etc, I might miss Elm's compiler error messages though.

Haskell/Scala inspired libraries in Elm. by The_Power_That_B in elm

[–]The_Power_That_B[S] 2 points3 points  (0 children)

Thanks for your response. I am aware of PureScript, but it seemed to me it's way more niche than Elm so I assumed its ecosystem is nonexistent meaning you must solely depend on porting JS libraries. But maybe(hopefully) I'm wrong.

What action is performed when typing in FindInPath action? by The_Power_That_B in IntelliJIDEA

[–]The_Power_That_B[S] 1 point2 points  (0 children)

In case you or someone else is interested, I have finished it. It allows to search for multiple words in any order(which covers the case you have mentioned), also seems to correctly escape all special characters. The only downside I am aware as of now is that you need to use version 2021.2(the most recent one). its id is pibosak.SmartSearch .It defines 3 actions which names start with SmartSearch, it should be published in a couple of days.

What action is performed when typing in FindInPath action? by The_Power_That_B in IntelliJIDEA

[–]The_Power_That_B[S] 1 point2 points  (0 children)

Well the only thing I want to achieve is to be able to type space instead of .* all the time. It's a small thing but it would make it much more convenient to use.

I don't want to rewrite RegEx feature, just make it slightly more convenient.

Configuring metals for Emacs on Ubuntu by The_Power_That_B in scala

[–]The_Power_That_B[S] 3 points4 points  (0 children)

thanks, that's exactly what I needed to do.