micro-editor / micro-editor/micro

cannot remap copy to ctrl-c

Open
#1,374 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

i wanted to use ctrl+c (no shift, just: ctrl+c) instead of the default ctrl+C (you need shift with the default keybind). so i created ~/.config/micro//bindings.json and i've put inside:

{
"ctrl-c":"Copy",
"ctrl-p":"Paste"
}

and it is not being picked up by micro.
i tried to change the case with: "Ctrl" instead of "ctrl", i also tried "Ctrlc" and "ctrlc" and more, but nothing woked.

Specifications

Commit hash: 1856891
OS: ubuntu 19.04
Terminal: st

i also tried with the nightly:
$ ./micro --version
Version: 1.4.2-dev.77
Commit hash: 3a8898d
Compiled on July 27, 2019

it didn't work either.

i use that hotkey in my terminal all day long, it works fine, i copy with ctrl+c, and i send break with ctrl+shift+c. i wanted to do the same in micro.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the key remapping with ~/.config/micro//bindings.json using the stated bindings and compare it with micro's key-name parsing and configuration loading. Done means that ctrl-c performs Copy in micro while ctrl-shift-c remains available for the terminal-style break behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.