ncaq / auto-sudoedit Goto Github PK
View Code? Open in Web Editor NEWautomatic do sudo by tramp when need root file
License: MIT License
automatic do sudo by tramp when need root file
License: MIT License
ssh接続する時はroot使えば問題にならないけどAWSとかで面倒
システムライブラリに飛んだ時、リードオンリーなので開き直されるのは仕方ないとして、smart-jump-goで飛んだ場合何故か /root/
をtrampで開いてしまう。
merlin-locateで直接飛んだ時は問題なし。
My apologies, I may just not understand the idea behind auto-sudoedit, but I do have difficulties understanding the idea behind it:
Shouldn't auto-sudoedit instead intercept the "find-file" function and say "hey, you won't be able to edit/save this file, do you want to open it as root via tramp instead"?
#3 でとりあえずディレクトリが存在しない方に寄せるようにしたが,
/var/tmp/systemd-private-45f10fa9b0de45f48a257a8e512c83c0-rtkit-daemon.service-FagvJX
のように親ディレクトリが書き込めるが子ディレクトリが書き込めないケースで問題が発生する.
何の関数を使うように変更すれば良いだろうか.
単に場合分けするしかない?
Hi 👋
I did some customizations for my use-case: Dragoncraft89@7c70781
Now, I'm wondering what parts you'd like me to contribute back upstream. Here's a list of my changes:
y-or-no-p
query before reopening the buffer. This allows you to open files when you don't have sudo permissions (e.g. via tramp on other people's machines)Just tell me whether you'd like me to upstream some of these changes and I'll happily prepare a pull request
Invoking auto-sudoedit-sudoedit
fails with this error:
Symbol’s function definition is void: auto-sudoedit-current-path
auto-sudoedit-current-path
was removed in #6, but is still referenced by auto-sudoedit-sudoedit
.
Nice idea, but I think it'd be better to use sudo-edit as a backend engine, because it has more checks and covers many more cases of filenames.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.