Comments (6)
- change flag in the_real_goto.py from -f to -o, --open and open
- update start_goto in _goto_completions to use -o, --open and open instead of -f
- update usage() to document this usage in the_real_goto.py
To do 2. simply append these new flags to the chain of || statements.
from goto.
I want to do this as part of a bigger change where I try to use something like the Click library for command line parsing.
from goto.
I now realize that this issue is closely related to #4.
I think that the default mode should be cd
and then there could be a -o
for explorer.
Since goto
is a command-line tool, cd
- ing is what i except to be the default behaviour.
My humble API suggestion
goto <magicword> # cd to folder
goto <magicword> -o --open # open window
I am not 100% sure if it is a good idea to do both cd to folder + open window, but in many case it would be useful. Some people might find it annoying. Maybe a third option would be cool
goto <magicword> # cd
goto <magicword> -o --open # open
goto <magicword> --ocd # cd + open (lol ocd)
from goto.
This was just merged in on from branch #17 -- you now can just do goto <magicword>
however, the flag for opening window is -f
That flag could possible be associated with "force" rm -rf | git push origin master -f etc.
So your flag, -o is better. How about the word: open also?
goto open <magicword>
goto <magicword> -o
goto <magicword> --open
I will actually leave the job of the better flags and word to @Arxcis this time ^^ (if he takes the challenge)
from goto.
For now I implemented it in the brute way the parsing is now,
Will check out Click and see how it is to work with compared to argparse
from goto.
Let's roll with Click
from goto.
Related Issues (20)
- Silence browser output HOT 3
- Refactor goto HOT 3
- Create plugin infrastructure that lets plugins register and respond to goto events HOT 18
- urls (or IRIs) with space is only added with the first part in goto HOT 1
- add goto origin (git remote)
- Detect and migrate all project data to new data structure HOT 2
- Ctrl + D and Ctrl + C -ing goto gives traceback in output HOT 1
- Truncated filepath with spaces - syntax error: Expected β"β but found end of script. (-2741) HOT 5
- goto copy not working in linux HOT 2
- goto open -- no such magicword named open HOT 1
- goto <magicword> <random> gives TypeError: argument of type 'bool' is not iterable
- goto add relative paths based on other magicwords
- jakdojade plugin (for traveling by public transport in poland)
- TypeError: usage() takes no arguments (4 given)
- Ah hoy! Failed to determine rcfile...
- goto spotify uris will only open the spotify client on linux
- OS-X execution error: Canβt get application "chrome". (-1728) HOT 2
- goto search
- Filepath issues on windows / vs \ HOT 1
- Make manual page for goto HOT 1
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 goto.