Questions tagged [remap]

257 questions
0
votes
0 answers

f search navigates to wrong character when using remapping

I use nvim with a German keyboard (on a Mac) and have remapped some keys to do something more useful for me. This is what that part of my init.vim looks like: nnoremap , : nnoremap : , imap ö ( imap ä ) imap Ö [ imap Ä ] imap ü { imap Ü } imap ß…
ge0rg
  • 63
  • 1
  • 11
0
votes
0 answers

Vim: Mapping C-Y to its original insert meaning when using YouCompleteMe

I use C-Y in insert mode relatively often to copy characters on the line above. This however does not work directly when the suggestion popup is open. At the same time, given that C-Y can also be used to close the popup, pressing it two times…
Svalorzen
  • 5,353
  • 3
  • 30
  • 54
0
votes
1 answer

(Python - Keyboard module) What am i doing wrong here! when I press up, I expect the mapping to press e but it presses q for up, down and for left

I'm trying to suppress keypresses and remap them to some other keys. The code looks something like this: from time import sleep import keyboard import os os.chdir(os.path.dirname(__file__)) keys = { 'up':'e', 'down':'s', …
Vishnu
  • 1
  • 2
0
votes
1 answer

Remapping `i` key in all shortcuts in vim

I'm trying to interchange i and l keys in vim. I've succeeded in all modes except for one issue. After pressing di vim receives di instead of dl and thus, instead of deleting the character to the right vim waits for another key to be pressed to…
0
votes
0 answers

How to speed up opencv function —— remap

I have a 5120×5120 image . Instead of using for-loop to iterate every pixes,I use matrix to optimise it.However,it turns out that the function remap itself consumes the most of time.So,how can i speed up the remap function?
0
votes
1 answer

generate special character ö with shortcut in vim

I want to press CTRL-; to generate the special character ö. I have tried to write this line in my .vimrc inoremap o: but nothing happens when I press CTRL-;. What am I doing wrong?
Nighel
  • 71
  • 12
0
votes
2 answers

Opencv, remap: save and load map1 and map2 from file

For better performance i want to calculate map1 and map2 only once and then use it with remap(). Both maps are of type CV_32FC1. I tried to save the maps as .bmp images or .exr files and then load it like this: cv::Mat map1, map2, out_img; map1 =…
Viktor
  • 1
0
votes
0 answers

Camera calibration rectify ROI instead of complete picture

I am working on a stereo vision project. My goal is to locate the 3D-coordinate of a point on a target that marked by a laser point. I do the stereo calibration with full size pictures. After getting the parameters, "initUndistortRectifyMap" is…
0
votes
0 answers

How to remap Excel spreadsheets to a common schema

I am volunteering for a non-profit that receives donor information from several different sources. This information is stored in Excel spreadsheets and each spreadsheet has its own schema (including different names for the same thing). Their goal…
limeri
  • 121
  • 1
  • 7
0
votes
1 answer

Problems with NetCDF regridding, python

Hello, everyone, this is my first question here ^^ I need to regrid some NetCDF files, so I've tried to do it with cdo and cf modules, but everything failed. Maybe someone knows some other modules for this purposes or can help me to get rid of my…
vakuoka
  • 1
  • 2
0
votes
1 answer

tmux changes "\" to spacebar when prefix is pressed

In tmux.conf I have mapped \ (alt gr + q) to rename session and it worked fine up until few months ago, then stopped responding to \ when prefix is activated. By chance I've figured out that tmux somehow started responding to spacebar for session…
Bengall
  • 1,267
  • 2
  • 9
  • 13
0
votes
2 answers

R How to remap letters in a string

I’d be grateful for suggestions as to how to remap letters in strings in a map-specified way. Suppose, for instance, I want to change all As to Bs, all Bs to Ds, and all Ds to Fs. If I do it like this, it doesn’t do what I want since it applies the…
James Bejon
  • 189
  • 5
0
votes
1 answer

How to customize gamepad controller joystick output sensitivity in Windows 10

I've been searching extensively for a way to change the sensitivity of my gamepads in Windows. In most games the joystick sensitivity is too high, so unless I very carefully and gently press the joystick, it's always sending a maxed output so my…
0
votes
0 answers

OpenCV remap BORDER_CONSTANT issue

I am trying to do a transform of a RGB image using cv::remap so that the empty space is extrapolated by the average intensity: cv::Mat mapX(sz, CV_32FC1), mapY(sz, CV_32FC1); // filling maps cv::remap(src, dst, mapX, mapY, cv::INTER_LINEAR,…
Egor
  • 107
  • 1
  • 8
0
votes
1 answer

VIM : Toggle between two executions for the same remap

I'd like to have to same remap to open and close my terminal. Here is my remap to open it : nnoremap :bel vert term What I want is that when my terminal is already open, if I type again, it execute exit I already tried a…
Cyprien
  • 94
  • 7