Comments (3)
Seem like you guys kind of busy. I just refactored the logic for vim-buffet
here: https://github.com/baIIoon/vim-buffet/tree/cleaning
I'm pretty new to Vimscript, so if you guys don't like it then I just want to contribute with some ideas:
- We should split the Logic and UI to 2 files
- Make a good code docs to easy add or tweak features in the Logic or in the UI
- The UI kind of really hard to understand the numbers
from vim-buffet.
Hey @baIIoon! Thanks for all your contributions and for raising the #39. Indeed, the code is messy and I also have hard time reading it when coming back after a while. Unfortunately, I won't have the time to work on it for a while, but I would be more than happy to review your suggestions and updates.
If you feel like working on it further, I would be happy to add you to the contributors so that you can work directly on this repo. Until then, can you please create a PR from your fork, so the changes are easier to review?
It's not that I'm good at Vimscript either, but what you have suggested, sound solid to me and I'd be glad to see all of that done.
Thanks again!
from vim-buffet.
@bagrat, i just created PR, it's actually pretty cumbersome. Please don't merge it.
I just want to show you the idea. The reason why it's so bloated is because: I think we don't have a lot of time to develop vim-buffet
, so the code must be easy to understand and in well organized, that will let us add or fix something more easier.
Here are some of my ideas:
- The flow of reading the code is from top to bottom, so I think we should only call functions inside
buffet#update()
,buffet#render()
, ... plugin/buffet.vim
- Only contain global variables, init code, mappings, ... Just not any code implementation.doc/duffet.vim
- For who want to add or contribute something (README.md is for users):- We can write a basic guidance, the intents
- Some coding rules for easy maintaining.
- A dev status block to contains something like: bugs, fixme, future features(reorder buffers, two ends separator), ideas ... anything you guys want.
- . . . . .
I'm working on all of that (temporary finish refactoring autoload/buffet.vim
, intents explaining), you guys can checkout it at: https://github.com/baIIoon/vim-buffet/tree/im_breaking_the_ui
Now I don't have time to develop maybe around a month later, hic 😢 . Man, I love this plugin and you guys so much.
from vim-buffet.
Related Issues (20)
- This plugin has a bright future but the code is pretty messy
- Feature request: Show buffer numbers (instead or alongside indexes) HOT 1
- Not clear that vim devicons needs to be loaded before vim-buffet HOT 1
- Changing buffers with index don't work
- Colors inherit from current theme? HOT 2
- Goyo makes vim-buffet "go away"
- appear more than one icon! HOT 3
- How to swap buffer1 and buffer2 HOT 1
- neomvim freezes when using vim-buffet together with vim-esearch
- crashes while decreasing window width HOT 3
- Shorten Name Displayed on Tabline
- newtab creates new buffet icon during render ( Image Attached ) HOT 1
- Customize the tabs
- I can't change the color of the buffers HOT 4
- A way to automatically run a command in a new tab HOT 1
- Strange background showing HOT 2
- Ability to switch between previous and current buffer back-and-forth HOT 1
- vim-buffet display strange. HOT 3
- Feature request: add ability to use nvim-web-devicons plugin to display filetype icons
- nvim-webicons support
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 vim-buffet.