Comments (5)
It's here . The rest of the related code should be reachable easily by jumping to definition a load of times.
from sapling.
I'd like to fix this.
where do you want the string to be printed?
from sapling.
The main reason we need this is so that #80 doesn't mess up the readout in the bottom right corner, as seen here:
What would be ideal is to have a function which takes a slice of Key
s and converts them into a string by calling core::key_display::KeyDisplay::compact_string
on each of them in turn. We can then use it for the bottom-right-corner readout, and the key stroke list in the keystroke log.
I think it would be tidy to add this function to KeyDisplay
too.
from sapling.
Can you show me the code bock for the bottom-right-corner readout? I couldn't find it.
from sapling.
I think it would be tidy to add this function to
KeyDisplay
too.
Can you be more specific over this
pub fn keystrokes_to_string(keystroke_buffer: &Vec<Key>) -> String {
keystroke_buffer
.iter()
.map(|x| x.compact_string())
.collect()
}
This is my implementation, and it won't work with KeyDisplay
from sapling.
Related Issues (20)
- Wanted to let you know about my blog post HOT 2
- Idea: have editing operations specific to source editing types HOT 2
- Alternative to "go to parent/child/sibling" navigation HOT 2
- Code reorganisation HOT 2
- No stream 2020-12-26 HOT 2
- Rename `DAG` and `JSON` to pascal case HOT 5
- Add type-safe intermediate step for node names HOT 18
- Quit on Enter HOT 1
- Crash when insert an invalid char in array, and object HOT 4
- Macro to generate `AstClass` enums
- Any other things that I can work on? HOT 3
- Incorrect cursor location after undo HOT 1
- Incorrect cursor position after undo HOT 4
- Replacing fields results in an invalid tree HOT 10
- replace crashes sapling HOT 10
- Go to previous cursor location HOT 11
- Implement command mode HOT 9
- String editing HOT 5
- Wrap operation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapling.