micro-editor / micro-editor/micro

feature proposal: terminal in split screen + REPL

Open
#2,079 1 comment 10 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

Dear Zyedidia and Micro contributors,

as a long time terminal user i am very impressed with your work. This is the first project which can possibly replace Vim or Emacs for me. It is full-featured even without plugins, it use powerful editing paradigm and still very lightweight!

There is only one daily-use feature i still can't reproduce in Micro: terminal in split screen with ability to send lines/blocks/selection from editor to terminal.

This is very useful feature if you developing script in some interpreted language: python, bash, nodejs, etc..

Ideal behavior looks like this (i'll try to describe it in NeoVim commands because it already have this behavior out-of-the-box and you can easily try it to see how it works):

  1. open main file with code, say, bash script
  2. execute editor command: :split term://bash
  3. switch back to editor window with Esc, C-w, C-w
  4. navigate to some line with code
  5. run copy-past command like this: "tyy<C-w>w"tpa<CR><C-\><C-n><C-w>pj - it can be mapped to hotkey. It will copy whole line, paste and execute into terminal and then navigate back to your editor window.

In short - just search for "NeoVim terminal"

It is very useful behavior to develope or debug simple scripts in terminal. It is also useful to quickly open terminal in split acreen, rename few files and close it.

Also this behavior is universal - you can work with any interpreted language: perl, python, ruby, bash, powershel, nodejs, whatever.

With this feature Micro will become powerful enough to replace Vim/Emacs/Neovim in lot of scenarios.

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 proposed :split term://bash workflow and compare it with the described NeoVim terminal behavior. The completed feature should provide a split terminal, allow lines, blocks, or selections to be sent from the editor, and support interactive REPL use across the mentioned interpreted languages.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.