rich write · several lines for a script

0.0 s

Screenshots

❯ msg=$(rich write --header 'Commit message' --show-line-numbers --char-limit 200)        
? Commit message ›                                                                        
1 │ Add rich write                                                                        
2 │                                                                                       
3 │ A multi-line editor for shell scripts,                                                
4 │ in the manner of gum.                                                                 
  ~                                                                                       
  76/200 · enter new line · ctrl+d submit · esc cancel                                    
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
editing
❯ msg=$(rich write --header 'Commit message' --show-line-numbers --char-limit 200)        
? Commit message › Add rich write … (+3 lines)                                            
❯ printf '%s\n' "$msg"                                                                    
Add rich write                                                                            
                                                                                          
A multi-line editor for shell scripts,                                                    
in the manner of gum.                                                                     
❯                                                                                         
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
answer