IT/Software
Filemanager Actions
Elex
2021. 3. 10. 21:55
반응형
Ubuntu 20.04의 Nautilus에 컨텍스트 메뉴를 추가하는 방법이다.
우선 필요한 패키지를 설치한다.
sudo apt install filemanager-actions
sudo apt install nautilus-extension-fma
그리고, 설정 프로그램을 실행하면
fma-config-tool
예를 들어, Nautilus의 컨텍스트 메뉴에 '현재 폴더에서 VS Code 열기' 메뉴를 추가하려는 경우에는 Command 탭에서 다음과 같이 설정하면 된다.
- Path : /usr/bin/code
- Parameters : %d/%b --working-directory=%d/%b
또, Execution 탭에서는 필터를 등록해서 파일 이름을 기준으로 표시되거나 표시되지 않게 지정할 수 있다.
파라미터
파라미터 | 설명 | |
---|---|---|
%b | (first) basename | singular |
%B | space-separated list of basenames | plural |
%c | count of selected items | |
%d | (first) base directory | singular |
%D | space-separated list of base directory of each selected items | plural |
%f | (first) filename | singular |
%F | space-separated list of selected filenames | plural |
%h | hostname of the (first) URI | |
%m | mimetype of the (first) selected item | singular |
%M | space-separated list of the mimetypes of the selected items | plural |
%n | username of the (first) URI | |
%o | no-op operator which forces a singular form of execution | singular |
%O | no-op operator which forces a plural form of execution | plural |
%p | port number of the (first) URI | |
%s | scheme of the (first) URI | |
%u | (first) URI | singular |
%U | space-separated list of selected URIs | plural |
%w | (first) basename without the extension | singular |
%W | space-separated list of basenames without their extension | plural |
%x | (first) extension | singular |
%X | space-separated list of extensions | plural |
%% | the « % » character |
반응형