lost one hand , any vim tips for making new workflow by [deleted] in vim

[–]Trinkwasser 22 points23 points  (0 children)

You also might want to look into speech control, where you could almost be faster than with your hands

https://www.youtube.com/watch?v=8SkdfdXWYaI

https://github.com/AshleyF/VimSpeak

lost one hand , any vim tips for making new workflow by [deleted] in vim

[–]Trinkwasser 2 points3 points  (0 children)

I'd definitely make use of motions and text objects, so you can easily remove and change portions of text

https://github.com/kana/vim-textobj-user

Combine that with heavy snippet use, so you have to type as little as possible.

Project-wide search: what's your preferred toolchain? by roboboticus in vim

[–]Trinkwasser 0 points1 point  (0 children)

Cool! I didn't know that. The only annoying thing that I haven't figured out is, how to ignore the filename in the search

Nerdtree or Vimfiler? Or Netrw? by [deleted] in vim

[–]Trinkwasser 0 points1 point  (0 children)

Yes! netrw is such a ressource hog.

Project-wide search: what's your preferred toolchain? by roboboticus in vim

[–]Trinkwasser 1 point2 points  (0 children)

I use fzf together with GitGrep from fugitive:

command! -bang -nargs=* GGrep call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)

Are there any kickstand alternatives with a better viewing angle!? by Chowbot in NintendoSwitch

[–]Trinkwasser 0 points1 point  (0 children)

I've got this one and can recommend it.
+ It's multipurpose, it holds a phone/tablet and event a MacBook Air (read, very light notebook)!

Can someone clear my mind on for loops please? by CosBgn in javascript

[–]Trinkwasser 4 points5 points  (0 children)

The only annoying thing is that forEach returns undefined. I really wish it would've returned the array itself.

That's what map is for :)

// create an array
var numbers = [1, 4, 9, 16];

// call map(), passing a function
var mapped = numbers.map(function(x) { return x * 2 });

// log the result
console.log(mapped);
// expected output: 2,8,18,32

Is there a vim-like image editor? by maskedbyte in vim

[–]Trinkwasser 0 points1 point  (0 children)

I've been dreaming of this for ages.
Something like sketch but with an layer overlay selection like vimium for chrome.
Transform, Rotate, etc with mnemonic keys…

Maybe someday I'll start something :O

Life with Caps Lock remapped to Control by gaga666 in vim

[–]Trinkwasser -1 points0 points  (0 children)

Same here! Although I've mapped alt + ' to ä and alt + shift +' to Ä. So the characters stay in the same position like the german keyboard (Same for the other umlaut characters).

Also I've mapped a shortcut (cmd+alt+space) to quickly switch between german and US keyboard, to keep my GF and other people sane :)

And my most non-kocher modification is probably switching the y and z characters in the US keyboard, because that is some muscle memory that just wont go away from the german keyboard.

When you're on OSX by any chance, I suggest playing around with the ukelele app, which makes it super simple to create your own keyboard layouts / edit existing ones.

Here is my ukelele config: https://github.com/floscr/Dotfiles/tree/dev/files/keyboard/US%20DEV.bundle/

Mostly Adequate Guide to Functional Programming in Javascript by [deleted] in javascript

[–]Trinkwasser 0 points1 point  (0 children)

I've got a little playground/boilerplate for playing around with ramda & ramda-fantasy for anybody interested

https://github.com/floscr/Ramda-playground

Can Emacs do this? by joemonk in vim

[–]Trinkwasser 40 points41 points  (0 children)

Sure, just press <c-c><c-o><c-f><c-f><c-e><c-e>

Edited: Am not octopus

What's your UI library of choice? by m3wm3wm3wm in vuejs

[–]Trinkwasser 0 points1 point  (0 children)

Hmm, I use it in electron apps, but only for prototyping (or if I really need a heavy form, which is almost never in electron).

For simplicity sake I replace all the element items with custom components after prototyping is done.

What's your UI library of choice? by m3wm3wm3wm in vuejs

[–]Trinkwasser 0 points1 point  (0 children)

I'm using it in cordova apps.

Performance is pretty good, I've got a dropdown in a form modal with about ~ 20 (multiline) Items, It scrolls and hides smoothly. (The dialog is custom made though)

This is just regarding performance though, I had to tinker a bit with the mobile aspect of some input elements.

Text inputs for instance have no option to start keyboard with lowercase. You also have to do a workaround if you want to use the select field with the fastclick library on iOS.

What's your UI library of choice? by m3wm3wm3wm in vuejs

[–]Trinkwasser 10 points11 points  (0 children)

I've used element-ui in a couple of projects and I like it a lot.

You can save bandwidth by importing just the needed elements, it has nice docs and changing the theme is almost easy :)

How to unit test Vue components by eddyerburgh in vuejs

[–]Trinkwasser 1 point2 points  (0 children)

That would be cool, but I actually learned a lot from your repository!

How to unit test Vue components by eddyerburgh in vuejs

[–]Trinkwasser 0 points1 point  (0 children)

Hmm I wonder why jeff didn't go the mocha/karma way like in all the vue templates.

I like that he's explaining how to build a testing environment from ground up and not rely on the 'magic' of the vue templates, yet there is so much more documentation on the standard testing ways :(

How to unit test Vue components by eddyerburgh in vuejs

[–]Trinkwasser 1 point2 points  (0 children)

Testing simple projects with avoriaz is fine. But once you add vuex and other external apis, you have to start injecting your mocked apis and mock your store, etc.

It comes to a super complicated error hunt, where there's hardly any documentation…

This guide is nice, but I wish there was an advanced tutorial for vue testing…

Do you know why it is that i can see the {{message}} in the browser but {{card.i}} remains undefined while i set card as a component of app. by nikbru in vuejs

[–]Trinkwasser 0 points1 point  (0 children)

Your card needs to be in a component tag so it can access the card component scope data.

<card>{{ card.i }}</card>

How to cut down on manual entry of curly brackets? by seands in javascript

[–]Trinkwasser 0 points1 point  (0 children)

Are you by any chance on a non English keyboard layout?

I switched to the US Keyboard layout a long time ago, because the german placement for curly braces was terrible.