Comments (8)
Thank you for the suggestion.
I agree that sometimes dividing into parts makes things clear,
especially for the testing.
On the other hand, I don't plan to split files for now,
as one file mode has more portability and I think it is better for users who just use the script.
from vim_ahk.
ok, I'll employ the policy for development.
As you mentioned, separated into each mode may not only make the code seems better
but also give some futures available.
from vim_ahk.
Understandable about users that just use the script. However I imagine that most people would run the script from the cloned repo, so they can update it easier and track any changes. (If they have ahk installed, they are probably developers who write other scripts too, right?)
Otherwise they would just use the exe.
If they have the whole folder anyway, then they can still run one script and the others will automatically get called.
Would this be solved if the exe was kept up to date? (ie through ci)?
It seems to me that the script is never going to be super portable because you need to have a portable ahk install anyway, meaning the additional complexity of this being multiple scripts instead of one is relatively smaller.
I think that, for a portable version, we should focus on the exe, which is truly portable.
from vim_ahk.
Would you consider this some more now that the exe is being kept up to date? (Which solves the portability issue, to a large extent?)
from vim_ahk.
Yes.
I could not find the good practice to make a structure for AHK scripts,
but maybe we can start with vim.ahk at top and lib/xxx.ahk?
from vim_ahk.
I concur. Feel free to check out my fork to see how I did it, and I believe one of the other contributors split it a different way.
For example, mappings should be separate from settings code.
Possibly separate out code for the model
as well, like what the current mode is? May not have enough stored state for this to be worth it though
from vim_ahk.
Can I do this and open a PR? Or are you happy to? (I really want this done, especially after the work I just did)
from vim_ahk.
Closed as #40 was closed.
from vim_ahk.
Related Issues (20)
- Shortcut key to disable vim_ahk temporarily HOT 1
- e key behaves like w key HOT 6
- Dependency Dashboard
- [Enhancement] Add vim's "ciw" support HOT 3
- The system cannot find the path specified. HOT 3
- Normal mode 'a' behavior in the end of line HOT 8
- [Feature request] Send ESC by ESC at the insert mode and then enter the normal mode HOT 1
- use CheckChr, BlockInput for some places HOT 1
- sleep or clipwait for clipboard
- How can I make this work for SSMS? it used to work until now HOT 2
- ^ selects in normal mode and does not in visual HOT 1
- Can't build it for myself HOT 1
- Cannot coorperate with my Cap-Esc blinding stript HOT 2
- `e`: move to the last character HOT 2
- the 'enter' key doesn't work in normal mode, onenote 2021 HOT 4
- make `Editor` group on which Enter works as vim
- Caret Width permanently changed even when script is not loaded HOT 2
- Migration to AutoHotkey v2
- Typing 'f' key in normal mode types out f HOT 3
- Use a different key to escape from Insert mode 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 vim_ahk.